diff --git a/include/items.php b/include/items.php index f4bab4b8fc..4c7551e5c4 100644 --- a/include/items.php +++ b/include/items.php @@ -103,8 +103,7 @@ function add_page_info_data(array $data, $no_photos = false) $hashtags = "\n"; foreach ($data["keywords"] as $keyword) { /// @TODO make a positive list of allowed characters - $hashtag = str_replace([" ", "+", "/", ".", "#", "'", "’", "`", "(", ")", "„", "“"], - ["", "", "", "", "", "", "", "", "", "", "", ""], $keyword); + $hashtag = str_replace([' ', '+', '/', '.', '#', '@', "'", '"', '’', '`', '(', ')', '„', '“'], '', $keyword); $hashtags .= "#[url=" . DI::baseUrl() . "/search?tag=" . $hashtag . "]" . $hashtag . "[/url] "; } }