Merge remote-tracking branch 'security/fix/293-sql-injection' into QA_4_9
This commit is contained in:
commit
ce10567b74
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user