Fix #15202 - escaped correctly password
Fixes: #15202 Signed-off-by: Kartik Kathuria <kathuriakartik0@gmail.com>
This commit is contained in:
parent
61ea8b799a
commit
fd1bcc2415
@ -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`;"
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user