1
0

Remove not yet supported filter call

This commit is contained in:
Garvin Hicking
2007-02-22 09:40:01 +00:00
parent 0c51294707
commit 35bcbda057

View File

@@ -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);
}
*/
}
/*