note 100852 deleted from security.magicquotes.disabling by danbrown
| From: | danbrown@php.net | Date: | Thu, 11 Nov 2010 16:33:59 +0000 |
| Subject: | note 100852 deleted from security.magicquotes.disabling by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173948@lists.php.net to get a copy of this message | ||
Note Submitter: AskApache
----
Nice function from metala at metala dot org, here's a minimal version.
<?php
if (get_magic_quotes_gpc())
array_walk_recursive($gpc=array(&$_GET,&$_POST,&$_COOKIE,&$_REQUEST),
create_function('&$v,$k','$v=stripslashes($v);'));
?>