note 18235 deleted from function.set-magic-quotes-runtime by didou

From: Date: Thu, 29 May 2003 21:45:20 +0000
Subject: note 18235 deleted from function.set-magic-quotes-runtime by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49330@lists.php.net to get a copy of this message
Note Submitter: mholdgate@wakefield.co.uk ---- set_magic_quotes_runtime (0); Doesn't work for me, so I'm guessing that this isn't guaranteed to work on some configurations. There are workarounds for this: (You can add GET to this too) // Remove automatic quotes added to POST/COOKIE by PHP if (get_magic_quotes_gpc ()) { for (reset ($HTTP_POST_VARS); list ($k, $v) = each ($HTTP_POST_VARS); ) $$k = stripslashes ($v); for (reset ($HTTP_COOKIE_VARS); list ($k, $v) = each ($HTTP_COOKIE_VARS); ) $$k = stripslashes ($v); }

« previous php.notes (#49330) next »