From 5c87b95901bf4a9ae0530acc80a8279f07e93a91 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 19 Jul 2003 10:56:21 +0000 Subject: [PATCH] path disclosure --- db_datadict.php3 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/db_datadict.php3 b/db_datadict.php3 index fd3d07a6b6..e02d2ac08a 100644 --- a/db_datadict.php3 +++ b/db_datadict.php3 @@ -19,6 +19,10 @@ require('./libraries/transformations.lib.php3'); $cfgRelation = PMA_getRelationsParam(); +/** + * Check parameters + */ +PMA_checkParameters(array('db')); /** * Defines the url to return to in case of error in a sql statement @@ -50,7 +54,11 @@ if ($cfgRelation['commwork']) { */ PMA_mysql_select_db($db); $sql = 'SHOW TABLES FROM ' . PMA_backquote($db); -$rowset = mysql_query($sql); +$rowset = @PMA_mysql_query($sql); + +if (!$rowset) { + exit(); +} $count = 0; while ($row = mysql_fetch_array($rowset)) { if (PMA_MYSQL_INT_VERSION >= 32303) { -- 2.11.4.GIT