From 0356284e8bb680f8012338818ec45d70f8568537 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 10 Sep 2013 12:48:42 -0400 Subject: [PATCH] bug #3929 Database-specific privileges are not copied when cloning user --- ChangeLog | 1 + libraries/server_privileges.lib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a7aeff64d4..adc699ba4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog - bug #3993 Sorting in database overview with statistics doesn't work - bug Handle the situation where PHP_SELF is not set - bug #4080 Overwrite existing file not obeyed +- bug #3929 Database-specific privileges are not copied when cloning user 4.0.6.0 (2013-09-05) - bug #4036 Call to undefined function mb_detect_encoding (clarify the doc) diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index e87a84530e..d3d287e631 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -3182,7 +3182,7 @@ function PMA_getDbSpecificPrivsQueriesForChangeOrCopyUser( $user_host_condition = ' WHERE `User`' .' = \'' . PMA_Util::sqlAddSlashes($_REQUEST['old_username']) . "'" .' AND `Host`' - .' = \'' . PMA_Util::sqlAddSlashes($_REQUEST['old_username']) . '\';'; + .' = \'' . PMA_Util::sqlAddSlashes($_REQUEST['old_hostname']) . '\';'; $res = PMA_DBI_query('SELECT * FROM `mysql`.`db`' . $user_host_condition);