X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftagger.php;h=3ff5d57aa2091af318bbe43fce5b0da8612f14ac;hb=3f3c4aec79bf3ceedd551bae7cec7acfd68e3772;hp=4127aaadde4f4c6a7fabc783191de19c34a48574;hpb=4218e3f4945af7101c626852bda09d2c591b8e0c;p=friendica.git diff --git a/mod/tagger.php b/mod/tagger.php old mode 100644 new mode 100755 index 4127aaadde..3ff5d57aa2 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -11,7 +11,9 @@ function tagger_content(&$a) { return; } - $term= notags(trim($_GET['term'])); + $term = notags(trim($_GET['term'])); + // no commas allowed + $term = str_replace(array(',',' '),array('','_'),$term); if(! $term) return; @@ -103,7 +105,7 @@ EOT; if(! isset($bodyverb)) return; - $termlink = '#[url=' . $a->get_baseurl() . '/search?search=' . urlencode($term) . ']'. $term . '[/url]'; + $termlink = html_entity_decode('⌗') . '[url=' . $a->get_baseurl() . '/search?search=' . urlencode($term) . ']'. $term . '[/url]'; $arr = array(); @@ -132,6 +134,7 @@ EOT; $arr['target'] = $target; $arr['object-type'] = $objtype; $arr['object'] = $obj; + $arr['private'] = $item['private']; $arr['allow_cid'] = $item['allow_cid']; $arr['allow_gid'] = $item['allow_gid']; $arr['deny_cid'] = $item['deny_cid'];