]> git.mxchange.org Git - friendica.git/commitdiff
coloured text confusing the tag finder
authorFriendika <info@friendika.com>
Thu, 25 Nov 2010 01:21:31 +0000 (17:21 -0800)
committerFriendika <info@friendika.com>
Thu, 25 Nov 2010 01:21:31 +0000 (17:21 -0800)
boot.php

index a31d0f4aa4687b932d7689a061f35514058651ea..adaff5f49a0af51200f7e3bf9f20b61602962de6 100644 (file)
--- 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