From fcba0c459a82efd999c0070a8d3ad6250dd7dd5a Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 23 Jul 2003 18:32:03 +0000 Subject: [PATCH] bug 776436 Print view --- ChangeLog | 1 + tbl_printview.php3 | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8c92a910f..388fbae1f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2003-07-23 Marc Delisle * libraries/grab_globals.lib.php3: error when $_SERVER does not exist + * tbl_printview.php3: wrong validation for path disclosure (bug 776436) 2003-07-23 Garvin Hicking * css/phpmyadmin.css.php3: Removed 'lowercase' transform diff --git a/tbl_printview.php3 b/tbl_printview.php3 index 90beb6be7..bd69f13fc 100755 --- a/tbl_printview.php3 +++ b/tbl_printview.php3 @@ -12,13 +12,8 @@ if (!isset($selected_tbl)) { // Check parameters -if (!defined('PMA_COMMON_LIB_INCLUDED')) { - include('./libraries/common.lib.php3'); -} - -PMA_checkParameters(array('the_tables')); -if (!is_array($the_tables)) { - exit(); +if (!isset($the_tables) || !is_array($the_tables)) { + $the_tables = array(); } /**