Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3324'
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Adapter/Digest.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ protected function _secureStringCompare($a, $b)
return false;
}
$result = 0;
for ($i = 0; $i < strlen($a); $i++) {
for ($i = 0, $len = strlen($a); $i < $len; $i++) {
$result |= ord($a[$i]) ^ ord($b[$i]);
}
return $result == 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ protected function _secureStringCompare($a, $b)
return false;
}
$result = 0;
for ($i = 0; $i < strlen($a); $i++) {
for ($i = 0, $len = strlen($a); $i < $len; $i++) {
$result |= ord($a[$i]) ^ ord($b[$i]);
}
return $result == 0;
Expand Down

0 comments on commit e795f2b

Please sign in to comment.