8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9fa32f4 + cccefe6 commit 9cbe360Copy full SHA for 9cbe360
src/Symfony/Component/HttpKernel/UriSigner.php
@@ -79,7 +79,7 @@ public function check($uri)
79
$hash = $params[$this->parameter];
80
unset($params[$this->parameter]);
81
82
- return $this->computeHash($this->buildUrl($url, $params)) === $hash;
+ return hash_equals($this->computeHash($this->buildUrl($url, $params)), $hash);
83
}
84
85
private function computeHash($uri)
src/Symfony/Component/HttpKernel/composer.json
@@ -22,6 +22,7 @@
22
"symfony/http-foundation": "^4.1.1",
23
"symfony/debug": "~3.4|~4.0",
24
"symfony/polyfill-ctype": "~1.8",
25
+ "symfony/polyfill-php56": "~1.8",
26
"psr/log": "~1.0"
27
},
28
"require-dev": {
0 commit comments