Skip to content

Commit

Permalink
Fix variable names in String::compare.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswilms committed Jan 13, 2016
1 parent c58a811 commit 4e2ebb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/String.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public static function compare($known, $user) {
return false;
}
for ($i = 0, $result = 0; $i < $length; $i++) {
$result |= ord($left[$i]) ^ ord($right[$i]);
$result |= ord($known[$i]) ^ ord($user[$i]);
}
return $result === 0;
}
Expand Down

0 comments on commit 4e2ebb7

Please sign in to comment.