tweaked previous commit

This commit is contained in:
Fabien Potencier 2013-02-01 22:56:52 +01:00
parent 3fee9c0f80
commit 175827713a

View File

@ -58,7 +58,7 @@ class UriSigner
*/
public function check($uri)
{
if (!preg_match('/(.*)(?:\?|&)_hash=(.+?)$/', $uri, $matches)) {
if (!preg_match('/^(.*)(?:\?|&)_hash=(.+?)$/', $uri, $matches)) {
return false;
}