This commit is contained in:
Alexander M. Turek
2004-06-25 20:16:04 +00:00
parent 07833568ea
commit bb12e03b3a
2 changed files with 4 additions and 2 deletions

View File

@@ -19,6 +19,8 @@ $Source$
2004-06-25 Alexander M. Turek <rabus@users.sourceforge.net> 2004-06-25 Alexander M. Turek <rabus@users.sourceforge.net>
* queryframe.php: Undefined index errors. * queryframe.php: Undefined index errors.
* footer.inc.php: bug #979610. * footer.inc.php: bug #979610.
* server_privileges.php: bug #979596 (granting privileges doesn't take
wildcards in account).
2004-06-24 Marc Delisle <lem9@users.sourceforge.net> 2004-06-24 Marc Delisle <lem9@users.sourceforge.net>
* left.php, config.inc.php, Documentation.html, * left.php, config.inc.php, Documentation.html,

View File

@@ -1172,7 +1172,7 @@ if (empty($adduser) && empty($checkprivs)) {
$res = PMA_DBI_query('SHOW DATABASES;'); $res = PMA_DBI_query('SHOW DATABASES;');
$pred_db_array = array(); $pred_db_array = array();
while ($row = PMA_DBI_fetch_row($res)) { 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]; $pred_db_array[] = $row[0];
} }
} }
@@ -1183,7 +1183,7 @@ if (empty($adduser) && empty($checkprivs)) {
echo ' <select name="pred_dbname" onchange="this.form.submit();">' . "\n" echo ' <select name="pred_dbname" onchange="this.form.submit();">' . "\n"
. ' <option value="" selected="selected">' . $strUseTextField . ':</option>' . "\n"; . ' <option value="" selected="selected">' . $strUseTextField . ':</option>' . "\n";
foreach ($pred_db_array as $current_db) { foreach ($pred_db_array as $current_db) {
echo ' <option value="' . htmlspecialchars($current_db) . '">' . htmlspecialchars($current_db) . '</option>' . "\n"; echo ' <option value="' . htmlspecialchars(str_replace('_', '\\_', $current_db)) . '">' . htmlspecialchars($current_db) . '</option>' . "\n";
} }
echo ' </select>' . "\n"; echo ' </select>' . "\n";
} }