note 50925 deleted from function.get-magic-quotes-gpc by philip

From: Date: Tue, 27 Jun 2006 06:39:36 +0000
Subject: note 50925 deleted from function.get-magic-quotes-gpc by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-114350@lists.php.net to get a copy of this message
Note Submitter: theaxe at thefrozensea dot net ---- Without a doubt smart quotes are a nuisance. The following seems to do the trick on PHP 4.3.10. // if magic quotes on then get rid of them if (get_magic_quotes_gpc()) { $_GET = array_map('stripslashes', $_GET); $_POST = array_map('stripslashes', $_POST); $_COOKIE = array_map('stripslashes', $_COOKIE); } credit to: http://www.sitepoint.com/blog-post-view.php?id=176388

« previous php.notes (#114350) next »