From: Hypolite Petovan Date: Sat, 20 May 2023 14:10:14 +0000 (-0400) Subject: Support special characters in category widget links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c10a1f35688c111b744904bd16956bbbde9324ed;p=friendica.git Support special characters in category widget links --- diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 93dc5b7175..1d10f61427 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -178,6 +178,10 @@ class Widget $baseUrl = trim($baseUrl, '?') . '?'; } + array_walk($options, function (&$value) { + $value['ref'] = rawurlencode($value['ref']); + }); + return Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/filter.tpl'), [ '$type' => $type, '$title' => $title,