summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorTobias Schultze <webmaster@tubo-world.de>2012-12-14 23:08:21 +0100
committerTobias Schultze <webmaster@tubo-world.de>2012-12-14 23:08:21 +0100
commit6e2698d7c0b6eea885e363add59b0010e3178350 (patch)
treee2e629bd1cf333b7e5776ddd6ecf2f0961824e7c /Http
parentcc1f4e8659464d10fecd34f442c6509b76219010 (diff)
downloadsymfony-security-6e2698d7c0b6eea885e363add59b0010e3178350.zip
symfony-security-6e2698d7c0b6eea885e363add59b0010e3178350.tar.gz
symfony-security-6e2698d7c0b6eea885e363add59b0010e3178350.tar.bz2
fix double-decoding in the routing system
Diffstat (limited to 'Http')
-rw-r--r--Http/HttpUtils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/HttpUtils.php b/Http/HttpUtils.php
index cac130e..78bfb85 100644
--- a/Http/HttpUtils.php
+++ b/Http/HttpUtils.php
@@ -107,7 +107,7 @@ class HttpUtils
{
if ('/' !== $path[0]) {
try {
- $parameters = $this->router->match($request->getPathInfo());
+ $parameters = $this->router->match(urlencode($request->getPathInfo()));
return $path === $parameters['_route'];
} catch (MethodNotAllowedException $e) {
@@ -129,7 +129,7 @@ class HttpUtils
}
try {
- $parameters = $this->router->match($request->getPathInfo());
+ $parameters = $this->router->match(urlencode($request->getPathInfo()));
if (isset($parameters['_locale'])) {
$context->setParameter('_locale', $parameters['_locale']);