]> git.mxchange.org Git - friendica.git/commitdiff
Removed some more special characters from hashtags
authorMichael Vogel <icarus@dabo.de>
Thu, 30 Oct 2014 10:33:33 +0000 (11:33 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 30 Oct 2014 10:33:33 +0000 (11:33 +0100)
include/items.php

index c24bd6b55e299d78051041b8c034a79bd5ae5858..37532eaf9adc8c00c05db48ea1e52160a75057cd 100644 (file)
@@ -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] ";
                }
        }