From 1eec1349eb2b855a8967753fded7251d81fd0bd5 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 11 Feb 2020 23:14:26 +0100 Subject: [PATCH] Added characters to the disallowed hashtag characters --- include/items.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/items.php b/include/items.php index 91165344a..422c4bc05 100644 --- a/include/items.php +++ b/include/items.php @@ -89,8 +89,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] "; } }