checking post and get vars (again)

From: Date: Wed, 17 Apr 2002 18:50:39 +0000
Subject: checking post and get vars (again)
Groups: php.general 
Request: Send a blank email to php-general+get-93317@lists.php.net to get a copy of this message
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I know it is a common topic, but I think this is a new approach: $HTTP_POST_VARS = array_map( "f_change_chars", $HTTP_POST_VARS ); $HTTP_GET_VARS = array_map( "f_change_chars", $HTTP_GET_VARS ); where function f_change_chars ( $str ) { return strtr( $str, ";'\"&*<", "000000" ); } (Note it does not work as expected if POST or GET contain an array) I am using this approach in all my pages. Please tell me if you think it is not enough. Thanks in advance. Pedro.

« previous php.general (#93317) next »