note 72648 deleted from function.stripslashes by philip

From: Date: Wed, 07 Feb 2007 04:54:21 +0000
Subject: note 72648 deleted from function.stripslashes by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123003@lists.php.net to get a copy of this message
Note Submitter: Tim ---- Hi, here's a solution vor hauser's note. It's shorter and faster then "stripslashes_deep" example. <?php if (get_magic_quotes_gpc()) { $_REQUEST = array_map('stripslashes', $_REQUEST); $_POST = array_map('stripslashes', $_POST); $_GET = array_map('stripslashes', $_GET); $_COOKIE = array_map('stripslashes', $_COOKIE); } ?>

« previous php.notes (#123003) next »