From bb12e03b3a276770ee6d8679bf80468c8cbe3d2b Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Fri, 25 Jun 2004 20:16:04 +0000 Subject: [PATCH] bug #979596 --- ChangeLog | 2 ++ server_privileges.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0cae3d57d..79c7ee98b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,8 @@ $Source$ 2004-06-25 Alexander M. Turek * queryframe.php: Undefined index errors. * footer.inc.php: bug #979610. + * server_privileges.php: bug #979596 (granting privileges doesn't take + wildcards in account). 2004-06-24 Marc Delisle * left.php, config.inc.php, Documentation.html, diff --git a/server_privileges.php b/server_privileges.php index 247aee5b4..2bf98c388 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -1172,7 +1172,7 @@ if (empty($adduser) && empty($checkprivs)) { $res = PMA_DBI_query('SHOW DATABASES;'); $pred_db_array = array(); while ($row = PMA_DBI_fetch_row($res)) { - if (!isset($found_rows) || !in_array($row[0], $found_rows)) { + if (!isset($found_rows) || !in_array(str_replace('_', '\\_', $row[0]), $found_rows)) { $pred_db_array[] = $row[0]; } } @@ -1183,7 +1183,7 @@ if (empty($adduser) && empty($checkprivs)) { echo ' ' . "\n"; }