Removed some more special characters from hashtags

This commit is contained in:
Michael Vogel 2014-10-30 11:33:33 +01:00
parent 691aa17025
commit 5e303f9905
1 changed files with 2 additions and 1 deletions

View 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] ";
}
}