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.
1 parent 6f88a19 commit d74ccebCopy full SHA for d74cceb
src/AppBundle/Issues/GitHubRequestHandler.php
@@ -85,6 +85,6 @@ private function authenticate($hash, $key, $data)
85
throw new \RuntimeException('"hash" extension is needed to check request signature.');
86
}
87
88
- return $hash !== 'sha1='.hash_hmac('sha1', $data, $key);
+ return hash_equals($hash, 'sha1='.hash_hmac('sha1', $data, $key));
89
90
0 commit comments