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