Backend Development

Protection of PHP sites - processing of incoming data

Submitted by 0-Day, , Thread ID: 18949

Thread Closed

RE: Protection of PHP sites - processing of incoming data

Legitti
Supreme
Level:
0
Reputation:
32
Posts:
406
Likes:
15
Credits:
170
19-03-2016, 08:15 PM
#11
19-03-2016, 07:44 PM
Sozin Wrote:
02-03-2016, 11:01 PM
ivoivo Wrote:
good lesson Smile

How do I filter php code in $_POST?

Do you mean all values? Then:

[pre]
array_walk( $_POST, function( &$value, $key ){
$value = filter_function( $value ); // The filter function can be intval, floatval, or anything.. even a custom function will do.
});
[/pre]

Things to look into after considering the above code:
http://php.net/array_walk
http://php.net/manual/en/functions.anonymous.php

Fuck you, your too good with your shit :D

Users browsing this thread: 1 Guest(s)