bug 807047
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2003-10-02 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/grab_globals.lib.php3: bug 807047, protect POST variables
|
||||
against cookies of the same name
|
||||
|
||||
2003-10-01 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lang/slovenian update, thanks to Kositer Uros
|
||||
* lang/norwegian: Updated, thanks to Sven-Erik Andersen (sven-erik).
|
||||
|
@@ -21,6 +21,10 @@ if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
||||
reset($array);
|
||||
while (list($key, $value) = each($array)) {
|
||||
if (is_array($value)) {
|
||||
// there could be a variable coming from a cookie of
|
||||
// another application, with the same name as this array
|
||||
unset($GLOBALS[$key]);
|
||||
|
||||
PMA_gpc_extract($value, $target[$key]);
|
||||
} else if ($is_magic_quotes) {
|
||||
$target[$key] = stripslashes($value);
|
||||
|
Reference in New Issue
Block a user