• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
array filtering support in Request ( fetchGlobal ) | force filter usage ?

#1
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 )
{
    return 
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 )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.