note 19806 added to function.get-magic-quotes-gpc
| From: | php-general at lists dot php dot net | Date: | Mon, 11 Mar 2002 21:44:04 +0000 |
| Subject: | note 19806 added to function.get-magic-quotes-gpc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27638@lists.php.net to get a copy of this message | ||
In addition you might also want to include the parsed names in the change:
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+19806
http://master.php.net/manage/user-notes.php?action=delete+19806
http://master.php.net/manage/user-notes.php?action=reject+19806