diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 5af12d38f8..7b9311e506 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -692,7 +692,17 @@ class Request */ public function get($key, $default = null, $deep = false) { - return $this->query->get($key, $this->attributes->get($key, $this->request->get($key, $default, $deep), $deep), $deep); + $result = $this->query($key, $this, $deep); + if ($result === $this) { + $result = $this->attributes->get($key, $this, $deep); + } + if ($result === $this) { + $result = $this->request->get($key, $this, $deep); + } + if ($result === $this) { + return $default; + } + return $result; } /**