From 4fda10db2f62b556d3f2800faa2820bdaf3c7ce0 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 12 Apr 2014 17:04:54 -0700 Subject: don't match quote remnants --- include/text.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 6507a3e1f..97638f693 100755 --- a/include/text.php +++ b/include/text.php @@ -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,'"')) + 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; } -- cgit v1.2.3