Skip to content

Commit

Permalink
Merge pull request #54 from jeijei4/patch-3
Browse files Browse the repository at this point in the history
Fix: Using hash_hmac_algos() instead of hash_algos()
  • Loading branch information
paragonie-security authored Sep 11, 2024
2 parents 642ebf7 + 9e0436b commit 575a152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AntiCSRF.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public function reconfigure(array $options = []): self
$this->$opt = $val;
break;
case 'hashAlgo':
if (\in_array($val, \hash_algos(), true)) {
if (\in_array($val, \hash_hmac_algos(), true)) {
$this->hashAlgo = (string) $val;
}
break;
Expand Down

0 comments on commit 575a152

Please sign in to comment.