Page 1 of 1

Security tip i found

Posted: Sun Feb 26, 2012 11:09 am
by bowersbros
Whilst looking around the internet at other peoples code, I noticed something like this:

$username = array_map('strip_tags',$_POST['username']);
After looking at what it does, it basically will do the same as magic_quotes_gpc() however, without the need to check whether magic quotes is on or off.

Just thought you'd like to know :)

Re: Security tip i found

Posted: Mon Feb 27, 2012 12:00 pm
by jacek
That will apply the strip_tags function to every elements in the $_POST['username'] array (which is not an array, is it ?)

:?