From db7f51e09ea814ebfc132288263ab65632e8c7d0 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 25 Sep 2019 15:19:47 -0600 Subject: [PATCH] Update php.php --- resources/php.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/resources/php.php b/resources/php.php index 2bc760b6d9..5f50843c5e 100644 --- a/resources/php.php +++ b/resources/php.php @@ -26,7 +26,6 @@ //session handling //start the session - ini_set("session.cookie_httponly", True); if (function_exists('session_start')) { if (!isset($_SESSION)) { session_start(); @@ -51,13 +50,13 @@ if (get_magic_quotes_gpc()) { $in = array(&$_GET, &$_POST, &$_REQUEST, &$_COOKIE); while (list($k,$v) = each($in)) { - foreach ($v as $key => $val) { - if (!is_array($val)) { - $in[$k][$key] = stripslashes($val); - continue; - } - $in[] =& $in[$k][$key]; + foreach ($v as $key => $val) { + if (!is_array($val)) { + $in[$k][$key] = stripslashes($val); + continue; } + $in[] =& $in[$k][$key]; + } } unset($in); }