]> git.mxchange.org Git - friendica.git/commitdiff
Support special characters in category widget links
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 20 May 2023 14:10:14 +0000 (10:10 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 20 May 2023 14:10:14 +0000 (10:10 -0400)
src/Content/Widget.php

index 93dc5b71759eeb62daa065aafc9fa4e47e6a377f..1d10f614271e80d6381b936dab6a332509eda1b3 100644 (file)
@@ -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,