note 103694 deleted from security.magicquotes by danbrown

From: Date: Thu, 28 Apr 2011 14:33:34 +0000
Subject: note 103694 deleted from security.magicquotes by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179229@lists.php.net to get a copy of this message
Note Submitter: mechjagger at yahoo dot com ---- A better solution when you have to keep magic quotes enabled for an old app. if (!get_magic_quotes_gpc()) { array_walk_recursive($_POST, function(&$var){$var = addslashes($var);}); array_walk_recursive($_GET, function(&$var){$var = addslashes($var);}); }

« previous php.notes (#179229) next »