From 5e303f9905839682f35d2eccc82f3568796c2a5a Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 30 Oct 2014 11:33:33 +0100 Subject: [PATCH] Removed some more special characters from hashtags --- include/items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] "; } }