mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/9751] Compare $password with empty string instead of casting it to bool
PHPBB3-9751
This commit is contained in:
parent
dba8cf12fd
commit
7cc32d3843
1 changed files with 1 additions and 1 deletions
|
@ -1605,7 +1605,7 @@ function validate_password($password)
|
|||
{
|
||||
global $config, $db, $user;
|
||||
|
||||
if (!$password)
|
||||
if ($password === '')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue