mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
[ticket/9751] Compare $password with empty string instead of casting it to bool
PHPBB3-9751
This commit is contained in:
@@ -1605,7 +1605,7 @@ function validate_password($password)
|
||||
{
|
||||
global $config, $db, $user;
|
||||
|
||||
if (!$password)
|
||||
if ($password === '')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user