Skip to content

Commit e71006a

Browse files
authored
Change hash_equals order parameters (#221)
1 parent 1aa2669 commit e71006a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SignatureValidator/DefaultSignatureValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public function isValid(Request $request, WebhookConfig $config): bool
2424

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

27-
return hash_equals($signature, $computedSignature);
27+
return hash_equals($computedSignature, $signature);
2828
}
2929
}

0 commit comments

Comments
 (0)