There was an error while loading. Please reload this page.
1 parent 27185ca commit b49245dCopy full SHA for b49245d
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)
composer.json
@@ -21,6 +21,7 @@
21
"symfony/http-foundation": "~3.4.12|~4.0.12|^4.1.1",
22
"symfony/debug": "^3.3.3|~4.0",
23
"symfony/polyfill-ctype": "~1.8",
24
+ "symfony/polyfill-php56": "~1.8",
25
"psr/log": "~1.0"
26
},
27
"require-dev": {
0 commit comments