don't match quote remnants

This commit is contained in:
friendica 2014-04-12 17:04:54 -07:00
parent d7aaff459f
commit 4fda10db2f

View File

@ -618,6 +618,10 @@ function get_tags($s) {
// try not to catch url fragments
if(strpos($s,$mtch) && preg_match('/[a-zA-z0-9\/]/',substr($s,strpos($s,$mtch)-1,1)))
continue;
// or quote remnants from the quoted strings we already picked out earlier
if(strpos($mtch,'&quot'))
continue;
$ret[] = $mtch;
}
}
@ -638,7 +642,7 @@ function get_tags($s) {
usort($ret,'tag_sort_length');
// logger('get_tags: ' . print_r($ret,true));
logger('get_tags: ' . print_r($ret,true));
return $ret;
}