Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14115

array filtering support in Request ( fetchGlobal ) | force filter usage ?

$
0
0
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 )

Viewing all articles
Browse latest Browse all 14115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>