diff --git a/ChangeLog b/ChangeLog index eb4fbe709..51e591c0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA #1787915 + [lang] Croatian update, thanks to Renato Pavicic - patch #1807615 [GUI] Display patch for column rights in Opera +- bug #1811519 Can't delete user with a german umlaut. 2.11.1.1 (not yet released) - bug #1810629 [setup] XSS in setup.php, thanks to Omer Singer, The DigiTrust Group diff --git a/server_privileges.php b/server_privileges.php index 48089bda4..ac79395c1 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -1217,13 +1217,21 @@ if (isset($_REQUEST['delete']) || (isset($_REQUEST['change_copy']) && $_REQUEST[ $queries[] = '# ' . $GLOBALS['strReloadingThePrivileges'] . ' ...'; $queries[] = 'FLUSH PRIVILEGES;'; } + $drop_user_error = ''; foreach ($queries as $sql_query) { if ($sql_query{0} != '#') { - PMA_DBI_query($sql_query, $GLOBALS['userlink']); + if (! PMA_DBI_try_query($sql_query, $GLOBALS['userlink'])) { + $drop_user_error .= PMA_DBI_getError() . "\n"; + } } } $sql_query = join("\n", $queries); - $message = new PMA_Message('strUsersDeleted', PMA_Message::SUCCESS); + if (! empty($drop_user_error)) { + $message = PMA_Message::error(); + $message->setMessage($drop_user_error); + } else { + $message = PMA_Message::success('strUsersDeleted'); + } } unset($queries); } @@ -1454,7 +1462,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs echo '