Make $HTTP_ACCEPT_LANGUAGE available for machines with register_globals = off.
This commit is contained in:
@@ -8,6 +8,8 @@ $Source$
|
|||||||
2003-04-06 Alexander M. Turek <rabus@users.sourceforge.net>
|
2003-04-06 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* db_datadict.php3: The result of SHOW INDEX does not have a 'Comment'
|
* db_datadict.php3: The result of SHOW INDEX does not have a 'Comment'
|
||||||
column before MySQL 3.23 (bug #712055).
|
column before MySQL 3.23 (bug #712055).
|
||||||
|
* libraries/grab_globals.lib.php3: Make $HTTP_ACCEPT_LANGUAGE available for
|
||||||
|
machines with register_globals = off.
|
||||||
|
|
||||||
2003-04-05 Marc Delisle <lem9@users.sourceforge.net>
|
2003-04-05 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/romanian updates, thanks to Valics Lehel
|
* lang/romanian updates, thanks to Valics Lehel
|
||||||
|
@@ -56,10 +56,20 @@ if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
|||||||
}
|
}
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
if (!empty($_SERVER) && isset($_SERVER['PHP_SELF'])) {
|
if (!empty($_SERVER)) {
|
||||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
if (isset($_SERVER['PHP_SELF'])) {
|
||||||
} else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['PHP_SELF'])) {
|
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||||
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
|
}
|
||||||
|
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||||
|
$HTTP_ACCEPT_LANGUAGE = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
|
||||||
|
}
|
||||||
|
} else if (!empty($HTTP_SERVER_VARS)) {
|
||||||
|
if (isset($HTTP_SERVER_VARS['PHP_SELF'])) {
|
||||||
|
$PHP_SELF = $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'];
|
||||||
|
}
|
||||||
|
if (isset($HTTP_SERVER_VARS['PHP_SELF'])) {
|
||||||
|
$HTTP_ACCEPT_LANGUAGE = $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'];
|
||||||
|
}
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
// Securety fix: disallow accessing serious server files via "?goto="
|
// Securety fix: disallow accessing serious server files via "?goto="
|
||||||
|
Reference in New Issue
Block a user