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 5b752da commit 3b5539dCopy full SHA for 3b5539d
src/LINEBot/SignatureValidator.php
@@ -34,6 +34,6 @@ public static function validateSignature($json, $channelSecret, $signature)
34
if (empty($signature)) {
35
throw new InvalidSignatureException('Signature must not be empty');
36
}
37
- return hash_equals($signature, base64_encode(hash_hmac('sha256', $json, $channelSecret, true)));
+ return hash_equals(base64_encode(hash_hmac('sha256', $json, $channelSecret, true)), $signature);
38
39
0 commit comments