]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
dynamic delete icons for saved-search on network page
[friendica.git] / include / text.php
index 08803cc9b7be5b54bb7f4b9ceb8b6e980e520939..c4fd76e3e8f904495fdfe36d6fd1a4b93517579c 100644 (file)
@@ -492,6 +492,9 @@ function get_tags($s) {
                        // ignore strictly numeric tags like #1
                        if((strpos($mtch,'#') === 0) && ctype_digit(substr($mtch,1)))
                                continue;
+                       // try not to catch url fragments
+                       if(strpos($s,$mtch) && preg_match('/[a-zA-z0-9\/]/',substr($s,strpos($s,$mtch)-1,1)))
+                               continue;
                        $ret[] = $mtch;
                }
        }