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

From: Date: Tue, 27 Jun 2006 06:36:53 +0000
Subject: note 66329 deleted from function.get-magic-quotes-gpc by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-114338@lists.php.net to get a copy of this message
Note Submitter: net_navard at yahoo dot com ---- Hello firends This is that code posted by millerrd at gmail dot com: if(!get_magic_quotes_gpc()){ function deepslash($v){ return (is_array($v)) ? array_map("deepslash", $v) : addslashes($v); } $_POST=array_map("deepslash", $_POST); $_GET=array_map("deepslash", $_GET); $_COOKIE=array_map("deepslash", $_COOKIE); $_REQUEST=array_map("deepslash", $_REQUEST); $_GLOBALS=array_map("deepslash", $_GLOBALS); $_SERVER=array_map("deepslash", $_SERVER); } As far As I know We have not a superglobal array in PHP $_GLOBLAS, The correct code is: $GLOBALS=array_map("deepslash", $GLOBALS); Hossein, GOOD LUCK

« previous php.notes (#114338) next »