X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftext.php;h=c4fd76e3e8f904495fdfe36d6fd1a4b93517579c;hb=513c1c0d683fc770de7d9a78e0a83df9211bb4aa;hp=08803cc9b7be5b54bb7f4b9ceb8b6e980e520939;hpb=3bd2b731b2040e1025caef68e7da1f07907ae809;p=friendica.git diff --git a/include/text.php b/include/text.php index 08803cc9b7..c4fd76e3e8 100644 --- a/include/text.php +++ b/include/text.php @@ -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; } }