]> git.mjollnir.org Git - s9y.git/commitdiff
Remove not yet supported filter call
authorgarvinhicking <garvinhicking>
Thu, 22 Feb 2007 09:41:18 +0000 (09:41 +0000)
committergarvinhicking <garvinhicking>
Thu, 22 Feb 2007 09:41:18 +0000 (09:41 +0000)
include/compat.inc.php

index 8bf2f09c2222de18702b3b03788e74396b0cd012..7d38028367d53e1922d3a05c797a3537c069681f 100644 (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);
     }
+    */
 }
 
 /*