Fix incorrect calls to escapeString
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
parent
a9048b0b5c
commit
81fe5fe9bf
@ -3284,12 +3284,12 @@ function PMA_getUserSpecificRights($username, $hostname, $type, $dbname = '')
|
||||
$dbOrTableName = 'Db';
|
||||
} elseif ($type == 'table') {
|
||||
$user_host_condition .= " AND `Db` LIKE '"
|
||||
. $GLOBALS['dbi']->escapeString($dbname, true) . "'";
|
||||
. $GLOBALS['dbi']->escapeString($dbname) . "'";
|
||||
$tables_to_search_for_users = array('columns_priv',);
|
||||
$dbOrTableName = 'Table_name';
|
||||
} else { // routine
|
||||
$user_host_condition .= " AND `Db` LIKE '"
|
||||
. $GLOBALS['dbi']->escapeString($dbname, true) . "'";
|
||||
. $GLOBALS['dbi']->escapeString($dbname) . "'";
|
||||
$tables_to_search_for_users = array('procs_priv',);
|
||||
$dbOrTableName = 'Routine_name';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user