From 13ce33c92da35a2ca65d34c5de201952bc4a4667 Mon Sep 17 00:00:00 2001 From: ebela Date: Sat, 24 Sep 2022 17:15:31 +0000 Subject: [PATCH] Fix. Can set zero lenght password on constructor --- server/lib/classes/db_mysql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/classes/db_mysql.inc.php b/server/lib/classes/db_mysql.inc.php index 9b9d43b442..da0dd5de5e 100644 --- a/server/lib/classes/db_mysql.inc.php +++ b/server/lib/classes/db_mysql.inc.php @@ -77,7 +77,7 @@ class db $this->dbPort = $port ? $port : $conf['db_port']; $this->dbName = $database ? $database : $conf['db_database']; $this->dbUser = $user ? $user : $conf['db_user']; - $this->dbPass = $pass ? $pass : $conf['db_password']; + $this->dbPass = ( $pass !== NULL ) ? $pass : $conf['db_password']; $this->dbCharset = $conf['db_charset']; $this->dbClientFlags = ($flags !== NULL) ? $flags : $conf['db_client_flags']; $this->_iConnId = mysqli_init(); -- GitLab