Browse Source

Merge b4f19faca8 into 3e37fbb3e8

pull/2/merge
Micah Nordland 3 years ago
committed by GitHub
parent
commit
4a924a9617
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/p3k/WebSub/Client.php

+ 1
- 1
src/p3k/WebSub/Client.php View File

@ -218,7 +218,7 @@ class Client {
$alg = $match[1];
$sig = $match[2];
$expected_signature = hash_hmac($alg, $body, $secret);
return $sig == $expected_signature;
return hash_equals($sig, $expected_signature);
} else {
return false;
}

Loading…
Cancel
Save