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

From: Date: Tue, 15 Apr 2008 07:02:04 +0000
Subject: note 82524 added to function.get-magic-quotes-gpc
Groups: php.notes 
Request: Send a blank email to php-notes+get-138321@lists.php.net to get a copy of this message
@ dot dot dot dot dot alexander at gmail dot com I suggest replacing foreach by "stripslashes_deep": Example #2 Using stripslashes() on an array on <http://www.php.net/manual/en/function.stripslashes.php>: function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } This gives: if ( (function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc()) || (ini_get('magic_quotes_sybase') && (strtolower(ini_get('magic_quotes_sybase'))!="off")) ) { stripslashes_deep($_GET); stripslashes_deep($_POST); stripslashes_deep($_COOKIE); } ---- Server IP: 69.147.83.197 Probable Submitter: 141.75.149.101 ---- Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Edit -- https://master.php.net/note/edit/82524 Del: integrated -- https://master.php.net/note/delete/82524/integrated Del: useless -- https://master.php.net/note/delete/82524/useless Del: bad code -- https://master.php.net/note/delete/82524/bad+code Del: spam -- https://master.php.net/note/delete/82524/spam Del: non-english -- https://master.php.net/note/delete/82524/non-english Del: in docs -- https://master.php.net/note/delete/82524/in+docs Del: other reasons-- https://master.php.net/note/delete/82524 Reject -- https://master.php.net/note/reject/82524 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138321) next »