Skip to content

Commit 3576011

Browse files
committed
use strict comparison
1 parent a545c4a commit 3576011

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

public_html/lists/admin/phpListAdminAuthentication.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ public function validateLogin($login, $password)
4545
if ($admindata['disabled']) {
4646
return array(0, s('your account has been disabled'));
4747
}
48-
if (//Password validation.
49-
!empty($passwordDB) && $encryptedPass == $passwordDB
50-
)
48+
if (
49+
!empty($passwordDB) && $encryptedPass === $passwordDB
50+
) {
5151
return array($admindata['id'], 'OK');
52+
}
5253
else {
5354
if (!empty($GLOBALS['admin_auth_module'])) {
5455
Error(s('Admin authentication has changed, please update your admin module'),

0 commit comments

Comments
 (0)