Commit 92b9ae38 by Vladimir

Update BaseSecurity.php

prevent call strlen function twice
parent 7488caac
......@@ -302,7 +302,7 @@ class BaseSecurity
$test = crypt($password, $hash);
$n = strlen($test);
if (strlen($test) < 32 || $n !== strlen($hash)) {
if ($n < 32 || $n !== strlen($hash)) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment