diff --git a/ChangeLog b/ChangeLog index 45c8e3c54..938b4b7a6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2004-09-11 Marc Delisle * lang/dutch: small update * lang/chinese_simplified: updated, thanks to Simon - simon2san + * server_privileges.php: bug #1003238, cannot manipulate a username + like "example@nothost" where the "@" is part of the username 2004-09-10 Alexander M. Turek * lang/german-*.inc.php: grammar. diff --git a/server_privileges.php b/server_privileges.php index a8a2094bd..6386a0915 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -802,14 +802,16 @@ if (!empty($change_pw)) { * Deletes users * (Changes / copies a user, part IV) */ +$user_host_separator = chr(27); + if (!empty($delete) || (!empty($change_copy) && $mode < 4)) { if (!empty($change_copy)) { - $selected_usr = array($old_username . '@' . $old_hostname); + $selected_usr = array($old_username . $user_host_separator . $old_hostname); } else { $queries = array(); } for ($i = 0; isset($selected_usr[$i]); $i++) { - list($this_user, $this_host) = explode('@', $selected_usr[$i]); + list($this_user, $this_host) = explode($user_host_separator, $selected_usr[$i]); $queries[] = '# ' . sprintf($strDeleting, '\'' . $this_user . '\'@\'' . $this_host . '\'') . ' ...'; if ($mode == 2) { // The SHOW GRANTS query may fail if the user has not been loaded @@ -960,7 +962,7 @@ if (empty($adduser) && empty($checkprivs)) { $useBgcolorOne = TRUE; for ($i = 0; $row = PMA_DBI_fetch_assoc($res); $i++) { echo ' ' . "\n" - . ' ' . "\n" + . ' ' . "\n" . ' ' . "\n" . ' ' . htmlspecialchars($row['Host']) . '' . "\n"; $privs = PMA_extractPrivInfo($row, TRUE);