From 6618d2c57130ff3b507ba6bc9c4b88060914e279 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Tue, 4 Feb 2014 02:14:56 +0100 Subject: [PATCH] Fixed an extra '&' when removing a duplicate parameter from query string --- core/lib/Thelia/Tools/URL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Thelia/Tools/URL.php b/core/lib/Thelia/Tools/URL.php index 575ec545a..0334ac72e 100644 --- a/core/lib/Thelia/Tools/URL.php +++ b/core/lib/Thelia/Tools/URL.php @@ -145,7 +145,7 @@ class URL foreach ($parameters as $name => $value) { // Remove this parameter from base URL to prevent duplicate parameters - $base = preg_replace('/([?&])'.$name.'=([^&])*(&|$)/', '$1', $base); + $base = preg_replace('/([?&])'.$name.'=([^&])*(&|$)/', '', $base); $queryString .= sprintf("%s=%s&", urlencode($name), urlencode($value)); }