note 45362 deleted from function.get-magic-quotes-gpc by aidan
| From: | aidan@php.net | Date: | Tue, 07 Sep 2004 07:25:21 +0000 |
| Subject: | note 45362 deleted from function.get-magic-quotes-gpc by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76130@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Deleting magic_quotes_gpc = On effect (by http://phpfaq.ru/slashes):
function delete_magic_quotes(&$el) {
if (is_array($el))
foreach ($el as $k=>$v)
if ($k != 'GLOBALS') strips($el[$k]);
else $el = stripslashes($el);
}
if (get_magic_quotes_gpc()) strips($GLOBALS);