From eb1d4f4eda3eae1ea477986bd0605e13a82b28cc Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Thu, 27 Feb 2025 13:46:34 +0100 Subject: [PATCH] Fix url encode --- htdocs/categories/class/categorie.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 94366e3b683..568d9629157 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -1523,7 +1523,7 @@ class Categorie extends CommonObject } if ($url == '') { - $link = ''; + $link = ''; $linkend = ''; $w[] = $link.(($addpicto && $i == 1) ? img_object('', 'category', 'class="paddingright"') : '').$cat->label.$linkend; } elseif ($url == 'none') { @@ -1531,7 +1531,7 @@ class Categorie extends CommonObject $linkend = ''; $w[] = $link.(($addpicto && $i == 1) ? img_object('', 'category', 'class="paddingright"') : '').$cat->label.$linkend; } else { - $w[] = ''.($addpicto ? img_object('', 'category') : '').$cat->label.''; + $w[] = ''.($addpicto ? img_object('', 'category') : '').$cat->label.''; } } $newcategwithpath = preg_replace('/colortoreplace/', $forced_color, implode(''.$sep.'', $w));