aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-12 17:04:54 -0700
committerfriendica <info@friendica.com>2014-04-12 17:04:54 -0700
commit4fda10db2f62b556d3f2800faa2820bdaf3c7ce0 (patch)
tree9c8d51d7f530ccee32b70cc6f04b1c2dea04dde7 /include/text.php
parentd7aaff459f7a7fc58568bc2cb58c1aa22061bfb4 (diff)
downloadvolse-hubzilla-4fda10db2f62b556d3f2800faa2820bdaf3c7ce0.tar.gz
volse-hubzilla-4fda10db2f62b556d3f2800faa2820bdaf3c7ce0.tar.bz2
volse-hubzilla-4fda10db2f62b556d3f2800faa2820bdaf3c7ce0.zip
don't match quote remnants
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php6
1 files changed, 5 insertions, 1 deletions
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,'&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;
}