From 0b84f477519ef71f10a3a0805e5c8a5636514481 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 22 Feb 2011 16:39:52 +0100 Subject: [PATCH] [Routing] Parameters that are part of the URL pattern itself should not be urlencoded --- src/Symfony/Component/Routing/Generator/UrlGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Routing/Generator/UrlGenerator.php b/src/Symfony/Component/Routing/Generator/UrlGenerator.php index a67b1f41c64e6..bc32c5c83b10d 100644 --- a/src/Symfony/Component/Routing/Generator/UrlGenerator.php +++ b/src/Symfony/Component/Routing/Generator/UrlGenerator.php @@ -98,7 +98,7 @@ protected function doGenerate($variables, $defaults, $requirements, $tokens, $pa throw new \InvalidArgumentException(sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given).', $token[3], $name, $requirements[$token[3]], $tparams[$token[3]])); } - $url = $token[1].urlencode($tparams[$token[3]]).$url; + $url = $token[1].$tparams[$token[3]].$url; $optional = false; } } elseif ('text' === $token[0]) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy