bug #3515181 [users] Error in create user + underscore + create database

This commit is contained in:
Marc Delisle 2012-04-05 10:21:56 -04:00
parent e5466df560
commit 7656d88799
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ phpMyAdmin - ChangeLog
- bug #3512916 [display] Right frame reloads after displaying SQL result(zero rows)
- bug [interface] Fixed missing Codemirror for inline query edit when exporting a result set
- bug #3514490 [auth] Multiple Navigation panels bug still present
- bug #3515181 [users] Error in create user + underscore + create database
3.5.0.0 (not yet released)
+ rfe #2021981 [interface] Add support for mass prefix change.

View File

@ -1068,7 +1068,7 @@ if (isset($_REQUEST['adduser_submit']) || isset($_REQUEST['change_copy'])) {
}
$q = 'GRANT ALL PRIVILEGES ON '
. PMA_backquote(PMA_sqlAddSlashes($username)) . '.* TO \''
. PMA_backquote(PMA_escape_mysql_wildcards(PMA_sqlAddSlashes($username))) . '.* TO \''
. PMA_sqlAddSlashes($username) . '\'@\'' . PMA_sqlAddSlashes($hostname) . '\';';
$sql_query .= $q;
if (! PMA_DBI_try_query($q)) {