Skip to content

Commit

Permalink
Change hash_equals order parameters (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylfel authored Aug 7, 2024
1 parent 1aa2669 commit e71006a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SignatureValidator/DefaultSignatureValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public function isValid(Request $request, WebhookConfig $config): bool

$computedSignature = hash_hmac('sha256', $request->getContent(), $signingSecret);

return hash_equals($signature, $computedSignature);
return hash_equals($computedSignature, $signature);
}
}

0 comments on commit e71006a

Please sign in to comment.