Merge remote-tracking branch 'security/fix/293-sql-injection' into QA_4_9

This commit is contained in:
Isaac Bennetch 2020-01-07 14:07:17 -05:00
commit ce10567b74

View File

@ -3067,7 +3067,7 @@ class Privileges
if (isset($_GET['validate_username'])) {
$sql_query = "SELECT * FROM `mysql`.`user` WHERE `User` = '"
. $_GET['username'] . "';";
. $GLOBALS['dbi']->escapeString($_GET['username']) . "';";
$res = $GLOBALS['dbi']->query($sql_query);
$row = $GLOBALS['dbi']->fetchRow($res);
if (empty($row)) {