Welcome Guest, Not a member yet? Register   Sign In
array filtering support in Request ( fetchGlobal ) | force filter usage ?

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 )

Theme © iAndrew 2016 - Forum software by © MyBB