Escape database name in SQL query
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
ff9291964c
commit
0fad7290c9
@ -2384,7 +2384,7 @@ function PMA_getListOfPrivilegesAndComparedPrivileges()
|
||||
*/
|
||||
function PMA_getHtmlTableBodyForSpecificDbRoutinePrivs($db, $odd_row, $index_checkbox)
|
||||
{
|
||||
$sql_query = 'SELECT * FROM `mysql`.`procs_priv` WHERE Db = "' . $db . '";';
|
||||
$sql_query = 'SELECT * FROM `mysql`.`procs_priv` WHERE Db = "' . Util::sqlAddSlashes($db) . '";';
|
||||
$res = $GLOBALS['dbi']->query($sql_query);
|
||||
$html_output = '';
|
||||
while ($row = $GLOBALS['dbi']->fetchAssoc($res)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user