note 18192 added to function.get-magic-quotes-gpc
| From: | php-general at lists dot php dot net | Date: | Mon, 14 Jan 2002 05:10:16 +0000 |
| Subject: | note 18192 added to function.get-magic-quotes-gpc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24788@lists.php.net to get a copy of this message | ||
for php4 it needs to look like:
if (get_magic_quotes_gpc()) {
foreach($HTTP_GET_VARS as $k=>$v)
$HTTP_GET_VARS[$k] = stripslashes($v);
foreach($HTTP_POST_VARS as $k=>$v)
$HTTP_POST_VARS[$k] = stripslashes($v);
foreach($HTTP_COOKIE_VARS as $k=>$v)
$HTTP_COOKIE_VARS[$k] = stripslashes($v);
}
--
http://www.php.net/manual/en/function.get-magic-quotes-gpc.php
http://master.php.net/manage/user-notes.php?action=edit+18192
http://master.php.net/manage/user-notes.php?action=delete+18192
http://master.php.net/manage/user-notes.php?action=reject+18192