[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_2-4138-gfc2b699
Piotr Przybylski
crackpl at users.sourceforge.net
Fri Jun 17 20:08:02 CEST 2011
The branch, master has been updated
via fc2b6993042a1d3a2ef6cb31f4c791b01e86db01 (commit)
from fb799d270596f91420eedb3e7bee99200bf717c4 (commit)
- Log -----------------------------------------------------------------
commit fc2b6993042a1d3a2ef6cb31f4c791b01e86db01
Author: Piotr Przybylski <piotrprz at gmail.com>
Date: Fri Jun 17 20:06:54 2011 +0200
Data dictionary could fail due to incorrect db name escaping
-----------------------------------------------------------------------
Summary of changes:
db_datadict.php | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/db_datadict.php b/db_datadict.php
index 102724d..acd96dc 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";
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list