diff --git a/www/_include.php b/www/_include.php index 26ce8ee85306a4f2b289c946a45824029b93f3af..e1322e90e10a75278c5c7ef0987721dcfc2c1411 100644 --- a/www/_include.php +++ b/www/_include.php @@ -3,22 +3,21 @@ /* Remove magic quotes. */ if(get_magic_quotes_gpc()) { foreach(array('_GET', '_POST', '_COOKIE', '_REQUEST') as $a) { - foreach($$a as &$v) { - - /* We don't use array-parameters anywhere. - * Ignore any that may appear. - */ - if(is_array($v)) { - continue; + if (is_array($$a)) { + foreach($$a as &$v) { + /* We don't use array-parameters anywhere. + * Ignore any that may appear. + */ + if(is_array($v)) { + continue; + } + /* Unescape the string. */ + $v = stripslashes($v); } - - /* Unescape the string. */ - $v = stripslashes($v); } } } - $path_extra = dirname(dirname(__FILE__)) . '/lib'; $path = ini_get('include_path');