note 13129 deleted from function.get-magic-quotes-gpc by didou
| From: | didou@php.net | Date: | Thu, 29 May 2003 21:11:37 +0000 |
| Subject: | note 13129 deleted from function.get-magic-quotes-gpc by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49318@lists.php.net to get a copy of this message | ||
Note Submitter: hirose@tg.rim.or.jp
----
To force disable magic quotes, I put this code on top of script.
if (get_magic_quotes_gpc()) {
// Overrides GPC variables
for (reset($HTTP_GET_VARS); list($k, $v) = each($HTTP_GET_VARS); )
$$k = stripslashes($v);
for (reset($HTTP_POST_VARS); list($k, $v) = each($HTTP_POST_VARS); )
$$k = stripslashes($v);
for (reset($HTTP_COOKIE_VARS); list($k, $v) = each($HTTP_COOKIE_VARS); )
$$k = stripslashes($v);
}