note 74617 added to function.get-magic-quotes-gpc

From: Date: Fri, 20 Apr 2007 09:38:57 +0000
Subject: note 74617 added to function.get-magic-quotes-gpc
Groups: php.notes 
Request: Send a blank email to php-notes+get-125610@lists.php.net to get a copy of this message
thank you Hugo pour this precision. how to be sure that GPC strings will be escaped? <?php if( in_array(ini_get('magic_quotes_gpc'), array('', '0', 'Off', 'False', 'No')) ) { function addslashes_array($array) { return is_array($array) ? array_map('addslashes_array', $array) : addslashes($array); } $_GET = addslashes_array($_GET); $_POST = addslashes_array($_POST); $_COOKIE = addslashes_array($_COOKIE); } ---- Server IP: 217.174.196.197 Probable Submitter: 87.90.219.84 ---- Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Edit -- https://master.php.net/note/edit/74617 Del: integrated -- https://master.php.net/note/delete/74617/integrated Del: useless -- https://master.php.net/note/delete/74617/useless Del: bad code -- https://master.php.net/note/delete/74617/bad+code Del: spam -- https://master.php.net/note/delete/74617/spam Del: non-english -- https://master.php.net/note/delete/74617/non-english Del: in docs -- https://master.php.net/note/delete/74617/in+docs Del: other reasons-- https://master.php.net/note/delete/74617 Reject -- https://master.php.net/note/reject/74617 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125610) next »