We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hash_equals
1 parent 610868e commit d5a7265Copy full SHA for d5a7265
src/Http/Middleware/VerifyWebhookSignature.php
@@ -32,6 +32,6 @@ protected function isInvalidSignature(string $payload, string $signature): bool
32
{
33
$hash = hash_hmac('sha256', $payload, config('lemon-squeezy.signing_secret'));
34
35
- return $hash !== $signature;
+ return ! hash_equals($hash, $signature);
36
}
37
0 commit comments