diff --git a/src/Symfony/Component/HttpKernel/UriSigner.php b/src/Symfony/Component/HttpKernel/UriSigner.php index 99d5932b15..665e99e2ef 100644 --- a/src/Symfony/Component/HttpKernel/UriSigner.php +++ b/src/Symfony/Component/HttpKernel/UriSigner.php @@ -58,7 +58,7 @@ class UriSigner */ public function check($uri) { - if (!preg_match('/(.*)(?:\?|&)_hash=(.+?)$/', $uri, $matches)) { + if (!preg_match('/^(.*)(?:\?|&)_hash=(.+?)$/', $uri, $matches)) { return false; }