Skip to content

Commit

Permalink
path disclosure
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Jul 19, 2003
1 parent c83c4d0 commit 5c87b95
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion db_datadict.php3
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5c87b95

Please sign in to comment.