path disclosure

This commit is contained in:
Marc Delisle
2003-07-19 12:04:52 +00:00
parent d02156b6de
commit fc1c4637ab
3 changed files with 18 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ require('./libraries/grab_globals.lib.php3');
$js_to_run = 'functions.js';
include('./header.inc.php3');
// Check parameters
PMA_checkParameters(array('db', 'table'));
/**
* Defines the url to return to in case of error in a sql statement
@@ -168,6 +170,7 @@ if (isset($submit)) {
*/
if ($abort == FALSE) {
if (!isset($selected)) {
PMA_checkParameters(array('field'));
$selected[] = $field;
$selected_cnt = 1;
} else { // from a multiple submit

View File

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

View File

@@ -2,6 +2,14 @@
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
// Check parameters
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
include('./libraries/common.lib.php3');
}
PMA_checkParameters(array('db', 'table'));
/**
* Insert data from one table to another one
*