diff --git a/phpBB/common.php b/phpBB/common.php index ba0a72fe2e..c8c6e1b6b7 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -24,8 +24,8 @@ if ( !defined('IN_PHPBB') ) die("Hacking attempt"); } -// error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables + set_magic_quotes_runtime(0); // Disable magic_quotes_runtime // The following code (unsetting globals) @@ -82,10 +82,11 @@ if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals while (list($var,) = @each($input)) { - if (!in_array($var, $not_unset)) + if (in_array($var, $not_unset)) { - unset($$var); + die('Hacking attempt!'); } + unset($$var); } unset($input);