note 53451 deleted from function.addslashes by philip

From: Date: Fri, 31 Mar 2006 15:25:21 +0000
Subject: note 53451 deleted from function.addslashes by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-107076@lists.php.net to get a copy of this message
Note Submitter: thezapper303 *at* gmx.de ---- This code can be inserted somewhere in your application (near the start): if (get_magic_quotes_gpc()) { // Yes? Strip the added slashes $_REQUEST = array_map('stripslashes', $_REQUEST); $_GET = array_map('stripslashes', $_GET); $_POST = array_map('stripslashes', $_POST); $_COOKIE = array_map('stripslashes', $_COOKIE); }

« previous php.notes (#107076) next »