Do not use $HTTP_*_VARS arrays anymore.
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-11-19 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
|
* libraries/grab_globals.lib.php3: Do not use $HTTP_*_VARS arrays anymore.
|
||||||
|
|
||||||
2003-11-18 Alexander M. Turek <rabus@users.sourceforge.net>
|
2003-11-18 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* libraries/common.lib.php: Recognizing new 2.x config.inc.php revisions.
|
* libraries/common.lib.php: Recognizing new 2.x config.inc.php revisions.
|
||||||
|
|
||||||
|
@@ -38,14 +38,10 @@ if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
|||||||
|
|
||||||
if (!empty($_GET)) {
|
if (!empty($_GET)) {
|
||||||
PMA_gpc_extract($_GET, $GLOBALS);
|
PMA_gpc_extract($_GET, $GLOBALS);
|
||||||
} else if (!empty($HTTP_GET_VARS)) {
|
|
||||||
PMA_gpc_extract($HTTP_GET_VARS, $GLOBALS);
|
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
if (!empty($_POST)) {
|
if (!empty($_POST)) {
|
||||||
PMA_gpc_extract($_POST, $GLOBALS);
|
PMA_gpc_extract($_POST, $GLOBALS);
|
||||||
} else if (!empty($HTTP_POST_VARS)) {
|
|
||||||
PMA_gpc_extract($HTTP_POST_VARS, $GLOBALS);
|
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
if (!empty($_FILES)) {
|
if (!empty($_FILES)) {
|
||||||
@@ -53,11 +49,6 @@ if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
|||||||
$$name = $value['tmp_name'];
|
$$name = $value['tmp_name'];
|
||||||
${$name . '_name'} = $value['name'];
|
${$name . '_name'} = $value['name'];
|
||||||
}
|
}
|
||||||
} else if (!empty($HTTP_POST_FILES)) {
|
|
||||||
while (list($name, $value) = each($HTTP_POST_FILES)) {
|
|
||||||
$$name = $value['tmp_name'];
|
|
||||||
${$name . '_name'} = $value['name'];
|
|
||||||
}
|
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
if (!empty($_SERVER)) {
|
if (!empty($_SERVER)) {
|
||||||
@@ -70,16 +61,6 @@ if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
|||||||
if (isset($_SERVER['HTTP_AUTHORIZATION'])) {
|
if (isset($_SERVER['HTTP_AUTHORIZATION'])) {
|
||||||
$HTTP_AUTHORIZATION = $_SERVER['HTTP_AUTHORIZATION'];
|
$HTTP_AUTHORIZATION = $_SERVER['HTTP_AUTHORIZATION'];
|
||||||
}
|
}
|
||||||
} else if (!empty($HTTP_SERVER_VARS)) {
|
|
||||||
if (isset($HTTP_SERVER_VARS['PHP_SELF'])) {
|
|
||||||
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
|
|
||||||
}
|
|
||||||
if (isset($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'])) {
|
|
||||||
$HTTP_ACCEPT_LANGUAGE = $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'];
|
|
||||||
}
|
|
||||||
if (isset($HTTP_SERVER_VARS['HTTP_AUTHORIZATION'])) {
|
|
||||||
$HTTP_AUTHORIZATION = $HTTP_SERVER_VARS['HTTP_AUTHORIZATION'];
|
|
||||||
}
|
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
// Security fix: disallow accessing serious server files via "?goto="
|
// Security fix: disallow accessing serious server files via "?goto="
|
||||||
|
Reference in New Issue
Block a user