note 19807 added to function.get-magic-quotes-gpc

From: Date: Mon, 11 Mar 2002 22:23:57 +0000
Subject: note 19807 added to function.get-magic-quotes-gpc
Groups: php.notes 
Request: Send a blank email to php-notes+get-27639@lists.php.net to get a copy of this message
And in addition to my own code (found an error in the eval), here's the final working code: if (get_magic_quotes_gpc()) { foreach($HTTP_GET_VARS as $k=>$v) { $HTTP_GET_VARS[$k] = stripslashes($v); eval( "\$$k = \"$HTTP_GET_VARS[$k]\";" ); } foreach($HTTP_POST_VARS as $k=>$v) { $HTTP_POST_VARS[$k] = stripslashes($v); eval( "\$$k = \"$HTTP_POST_VARS[$k]\";" ); } foreach($HTTP_COOKIE_VARS as $k=>$v) { $HTTP_COOKIE_VARS[$k] = stripslashes($v); eval( "\$$k = \"$HTTP_COOKIE_VARS[$k]\";" ); } } -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php http://master.php.net/manage/user-notes.php?action=edit+19807 http://master.php.net/manage/user-notes.php?action=delete+19807 http://master.php.net/manage/user-notes.php?action=reject+19807

« previous php.notes (#27639) next »