diff --git a/ChangeLog b/ChangeLog index 114273daf..0aa2bf80e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-06-30 Alexander M. Turek + * libraries/common.lib.php: Fix against $_REQUEST['cfg'] exploits. + 2004-06-29 Michal Čihař * lang/check_lang.sh: Checks for diffstat presence. diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 08268c722..977ac7b9c 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -65,6 +65,12 @@ if (!isset($pos)) { $pos = 0; } +/** + * 2004-06-30 rabus: Ensure, that $cfg variables are not set somwhere else + * before including the config file. + */ +unset($cfg); + /** * Detects the config file we want to load */