Patch typo_fix_crypt for Unknown/Other Function Bug #69157
Patch version 2015-03-02 13:42 UTC
Return to Bug #69157 |
Download this patch
Patch Revisions:
Developer: zorro_damian@hotmail.com
Wrong example script at
/manual/en/function.crypt.php => 'Example #1 crypt() examples'.
WRONG:
if (hash_equals($hashed_password, crypt($user_input, $hashed_password)) {
echo "Password verified!";
}
GOOD:
if (hash_equals($hashed_password, crypt($user_input, $hashed_password))) {
echo "Password verified!"; ^
} This fixes it.
The example script closes the: crypt(), hash_equals(), but not the if().
|