bug #1635377, superfluous backslash
This commit is contained in:
@@ -8,6 +8,8 @@ $HeadURL$
|
|||||||
2007-01-20 Marc Delisle <lem9@users.sourceforge.net>
|
2007-01-20 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/sqlparser.lib.php: bug #1638267, wrong reserved word
|
* libraries/sqlparser.lib.php: bug #1638267, wrong reserved word
|
||||||
recognition
|
recognition
|
||||||
|
* server_privileges.php: bug #1635377, superfluous backslash,
|
||||||
|
thanks to Hanut
|
||||||
|
|
||||||
2007-01-19 Marc Delisle <lem9@users.sourceforge.net>
|
2007-01-19 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* pmd*, lang/*: Designer now supports set/unset of the display field,
|
* pmd*, lang/*: Designer now supports set/unset of the display field,
|
||||||
|
@@ -1582,10 +1582,12 @@ if ( empty( $adduser ) && ( ! isset( $checkprivs ) || ! strlen($checkprivs) ) )
|
|||||||
} else {
|
} else {
|
||||||
echo ' - ' . $GLOBALS['strDatabase'];
|
echo ' - ' . $GLOBALS['strDatabase'];
|
||||||
}
|
}
|
||||||
echo ' <i><a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . $GLOBALS['url_query'] . '&db=' . urlencode($dbname) . '&reload=1">' . htmlspecialchars($dbname) . '</a></i>' . "\n";
|
$url_dbname = urlencode(str_replace('\_', '_', $dbname));
|
||||||
|
echo ' <i><a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . $GLOBALS['url_query'] . '&db=' . $url_dbname . '&reload=1">' . htmlspecialchars($dbname) . '</a></i>' . "\n";
|
||||||
if ( isset( $tablename ) && strlen($tablename) ) {
|
if ( isset( $tablename ) && strlen($tablename) ) {
|
||||||
echo ' - ' . $GLOBALS['strTable'] . ' <i><a href="' . $GLOBALS['cfg']['DefaultTabTable'] . '?' . $GLOBALS['url_query'] . '&db=' . urlencode($dbname) . '&table=' . urlencode($tablename) . '&reload=1">' . htmlspecialchars($tablename) . '</a></i>' . "\n";
|
echo ' - ' . $GLOBALS['strTable'] . ' <i><a href="' . $GLOBALS['cfg']['DefaultTabTable'] . '?' . $GLOBALS['url_query'] . '&db=' . $url_dbname . '&table=' . urlencode($tablename) . '&reload=1">' . htmlspecialchars($tablename) . '</a></i>' . "\n";
|
||||||
}
|
}
|
||||||
|
unset($url_dbname);
|
||||||
}
|
}
|
||||||
echo ' : ' . $GLOBALS['strEditPrivileges'] . '</h2>' . "\n";
|
echo ' : ' . $GLOBALS['strEditPrivileges'] . '</h2>' . "\n";
|
||||||
$res = PMA_DBI_query('SELECT \'foo\' FROM `mysql`.`user` WHERE ' . PMA_convert_using('User') . ' = ' . PMA_convert_using(PMA_sqlAddslashes($username), 'quoted') . ' AND ' . PMA_convert_using('Host') . ' = ' . PMA_convert_using($hostname, 'quoted') . ';', null, PMA_DBI_QUERY_STORE);
|
$res = PMA_DBI_query('SELECT \'foo\' FROM `mysql`.`user` WHERE ' . PMA_convert_using('User') . ' = ' . PMA_convert_using(PMA_sqlAddslashes($username), 'quoted') . ' AND ' . PMA_convert_using('Host') . ' = ' . PMA_convert_using($hostname, 'quoted') . ';', null, PMA_DBI_QUERY_STORE);
|
||||||
|
Reference in New Issue
Block a user