From: Michael Vogel Date: Thu, 30 Oct 2014 10:33:33 +0000 (+0100) Subject: Removed some more special characters from hashtags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5e303f9905839682f35d2eccc82f3568796c2a5a;p=friendica.git Removed some more special characters from hashtags --- diff --git a/include/items.php b/include/items.php index c24bd6b55e..37532eaf9a 100644 --- a/include/items.php +++ b/include/items.php @@ -921,7 +921,8 @@ function add_page_info_data($data) { $a = get_app(); $hashtags = "\n"; foreach ($data["keywords"] AS $keyword) { - $hashtag = str_replace(" ", "", $keyword); + $hashtag = str_replace(array(" ", "+", "/", ".", "#", "'"), + array("","", "", "", "", ""), $keyword); $hashtags .= "#[url=".$a->get_baseurl()."/search?tag=".rawurlencode($hashtag)."]".$hashtag."[/url] "; } }