path disclosure

This commit is contained in:
Marc Delisle
2003-07-19 11:13:12 +00:00
parent 9ee62d075a
commit e3161cfdf5
2 changed files with 9 additions and 0 deletions

View File

@@ -9,6 +9,13 @@
require('./libraries/grab_globals.lib.php3');
require('./header.inc.php3');
// Check parameters
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
include('./libraries/common.lib.php3');
}
PMA_checkParameters(array('db'));
/**
* Defines the url to return to in case of error in a sql statement

View File

@@ -9,6 +9,8 @@ require('./libraries/grab_globals.lib.php3');
require('./libraries/common.lib.php3');
require('./libraries/zip.lib.php3');
PMA_checkParameters(array('what'));
// What type of export are we doing?
if ($what == 'excel') {
$type = 'csv';