CodeIgniter Forums

Full Version: array filtering support in Request ( fetchGlobal ) | force filter usage ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, it would be nice to have an array filtering in fetchglobal - currently i have some helper functions for specific/easy scenarios like
numeric array:
PHP Code:
public function getPostArray$index$filter )
filter_input_arrayINPUT_POST, [ $index => [ 'filter' => $filter'flags' => FILTER_REQUIRE_ARRAY ] ], false )[$index];

would be a great improvement for security. ( i would also force the user to use filters - i know you can still directly access but sometimes you forgott it and so on )