From 48eab3e99ca082614caa8fd6929d8db27e8b7d6b Mon Sep 17 00:00:00 2001
From: Friendika <info@friendika.com>
Date: Wed, 24 Nov 2010 17:21:31 -0800
Subject: [PATCH] coloured text confusing the tag finder

---
 boot.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/boot.php b/boot.php
index a31d0f4aa..adaff5f49 100644
--- a/boot.php
+++ b/boot.php
@@ -1375,6 +1375,8 @@ function get_tags($s) {
 	$ret = array();
 	if(preg_match_all('/([@#][^ ,:?]*)([ ,:?]|$)/',$s,$match)) {
 		foreach($match[1] as $match) {
+			if(strstr($match,"]"))
+				continue;
 			if(substr($match,-1,1) === '.')
 				$ret[] = substr($match,0,-1);
 			else