Skip to content

Commit

Permalink
7.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
hborras committed Mar 2, 2020
1 parent 428ef86 commit 7448523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SignatureMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function checkSignature(Request $request, Consumer $consumer, Token $toke
// Avoid a timing leak with a (hopefully) time insensitive compare
$result = 0;
for ($i = 0, $iMax = strlen($signature); $i < $iMax; ++$i) {
$result |= ord($built{$i}) ^ ord($signature{$i});
$result |= ord($built[$i]) ^ ord($signature[$i]);
}

return $result == 0;
Expand Down

0 comments on commit 7448523

Please sign in to comment.