Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Przybylski <piotrprz@gmail.com>2011-06-17 22:06:54 +0400
committerPiotr Przybylski <piotrprz@gmail.com>2011-06-17 22:06:54 +0400
commitfc2b6993042a1d3a2ef6cb31f4c791b01e86db01 (patch)
tree6c640df51f0ffeb1edb138660b2c7baebf55bf0d /db_datadict.php
parentfb799d270596f91420eedb3e7bee99200bf717c4 (diff)
Data dictionary could fail due to incorrect db name escaping
Diffstat (limited to 'db_datadict.php')
-rw-r--r--db_datadict.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/db_datadict.php b/db_datadict.php
index 102724d3ac..acd96dcbf2 100644
--- a/db_datadict.php
+++ b/db_datadict.php
@@ -58,9 +58,8 @@ PMA_DBI_select_db($db);
$rowset = PMA_DBI_query('SHOW TABLES FROM ' . PMA_backquote($db) . ';', null, PMA_DBI_QUERY_STORE);
$count = 0;
-while ($row = PMA_DBI_fetch_assoc($rowset)) {
- $myfieldname = 'Tables_in_' . htmlspecialchars($db);
- $table = $row[$myfieldname];
+while ($row = PMA_DBI_fetch_row($rowset)) {
+ $table = $row[0];
$comments = PMA_getComments($db, $table);
echo '<div>' . "\n";