diff options
author | Tobias Schultze <webmaster@tubo-world.de> | 2012-12-14 23:08:21 +0100 |
---|---|---|
committer | Tobias Schultze <webmaster@tubo-world.de> | 2012-12-14 23:08:21 +0100 |
commit | 6e2698d7c0b6eea885e363add59b0010e3178350 (patch) | |
tree | e2e629bd1cf333b7e5776ddd6ecf2f0961824e7c /Http | |
parent | cc1f4e8659464d10fecd34f442c6509b76219010 (diff) | |
download | symfony-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.php | 4 |
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']); |