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 7eee78c + d74cceb commit dd3c437Copy full SHA for dd3c437
src/AppBundle/Issues/GitHubRequestHandler.php
@@ -90,6 +90,6 @@ private function authenticate($hash, $key, $data)
90
throw new \RuntimeException('"hash" extension is needed to check request signature.');
91
}
92
93
- return $hash !== 'sha1='.hash_hmac('sha1', $data, $key);
+ return hash_equals($hash, 'sha1='.hash_hmac('sha1', $data, $key));
94
95
0 commit comments