summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2012-12-20 08:11:40 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2012-12-20 08:11:40 +0100
commit6319bda841b7b488c33c647e3b4e53b2bcd1f4db (patch)
tree3d3b7b2e07e1815488b330f17d4efd3f3a0df135
parent75afdfe4132703fcb652d6e4aecafbe2785fcfe4 (diff)
parent6e2698d7c0b6eea885e363add59b0010e3178350 (diff)
downloadsymfony-security-6319bda841b7b488c33c647e3b4e53b2bcd1f4db.zip
symfony-security-6319bda841b7b488c33c647e3b4e53b2bcd1f4db.tar.gz
symfony-security-6319bda841b7b488c33c647e3b4e53b2bcd1f4db.tar.bz2
merged branch Tobion/fix-double-encoding (PR #6363)v2.0.21v2.0.20
This PR was merged into the 2.0 branch. Commits ------- 8b2c17f fix double-decoding in the routing system Discussion ---------- fix double-decoding in the routing system @fabpot @vicb This should fix it. You know what ;) Don't want to leak more information. And the good thing, it's no hack nor does it break BC.
-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']);