diff --git a/libraries/classes/Server/Privileges.php b/libraries/classes/Server/Privileges.php index 637ecba799..1785f282ea 100644 --- a/libraries/classes/Server/Privileges.php +++ b/libraries/classes/Server/Privileges.php @@ -5130,6 +5130,7 @@ class Privileges */ public static function getHashedPassword($password) { + $password = $GLOBALS['dbi']->escapeString($password); $result = $GLOBALS['dbi']->fetchSingleRow( "SELECT PASSWORD('" . $password . "') AS `password`;" );