start on bug #227 - more to do

This commit is contained in:
friendica 2011-11-25 22:41:50 -08:00
parent 6b93324c11
commit 0f4a42f550
4 changed files with 25 additions and 6 deletions

View 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;
}
}