Skip to content

Commit

Permalink
Fix incorrect calls to escapeString
Browse files Browse the repository at this point in the history
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
  • Loading branch information
devenbansod committed Nov 11, 2016
1 parent a9048b0 commit 81fe5fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/server_privileges.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 81fe5fe

Please sign in to comment.