From: Michael Vogel Date: Tue, 11 Feb 2020 22:14:26 +0000 (+0100) Subject: Added characters to the disallowed hashtag characters X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1eec1349eb2b855a8967753fded7251d81fd0bd5;p=friendica.git Added characters to the disallowed hashtag characters --- diff --git a/include/items.php b/include/items.php index 91165344af..422c4bc050 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] "; } }