From fe80c7eff59aa060ece94cfada91071c6cd88d39 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Thu, 22 Feb 2007 09:40:01 +0000 Subject: [PATCH] Remove not yet supported filter call --- include/compat.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/compat.inc.php b/include/compat.inc.php index 8bf2f09..7d38028 100644 --- a/include/compat.inc.php +++ b/include/compat.inc.php @@ -120,7 +120,7 @@ if (extension_loaded('filter') && function_exists('input_name_to_filter') && inp } } -if (extension_loaded('filter') && function_exists('filter_id') && filter_id(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) { +if (extension_loaded('filter') && function_exists('filter_id') && function_exists('filter_input') && filter_id(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) { foreach ($_POST as $key => $value) { $_POST[$key] = filter_input(INPUT_POST, $key, FILTER_UNSAFE_RAW); } @@ -130,9 +130,13 @@ if (extension_loaded('filter') && function_exists('filter_id') && filter_id(ini_ foreach ($_COOKIE as $key => $value) { $_COOKIE[$key] = filter_input(INPUT_COOKIE, $key, FILTER_UNSAFE_RAW); } + + // NOT YET IMPLEMENTED IN PHP: + /* foreach ($_SESSION as $key => $value) { $_SESSION[$key] = filter_input(INPUT_SESSION, $key, FILTER_UNSAFE_RAW); } + */ } /* -- 2.39.5