note 91585 added to security.magicquotes.disabling

From: Date: Wed, 17 Jun 2009 22:46:01 +0000
Subject: note 91585 added to security.magicquotes.disabling
Groups: php.notes 
Request: Send a blank email to php-notes+get-157044@lists.php.net to get a copy of this message
A php5 way: <?php if (get_magic_quotes_gpc()) { function stripslashes_gpc(&$value) { $value = stripslashes($value); } array_walk_recursive($_GET, 'stripslashes_gpc'); array_walk_recursive($_POST, 'stripslashes_gpc'); array_walk_recursive($_COOKIE, 'stripslashes_gpc'); array_walk_recursive($_REQUEST, 'stripslashes_gpc'); } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 83.31.231.182 ---- Manual Page -- http://www.php.net/manual/en/security.magicquotes.disabling.php Edit -- https://master.php.net/note/edit/91585 Del: integrated -- https://master.php.net/note/delete/91585/integrated Del: useless -- https://master.php.net/note/delete/91585/useless Del: bad code -- https://master.php.net/note/delete/91585/bad+code Del: spam -- https://master.php.net/note/delete/91585/spam Del: non-english -- https://master.php.net/note/delete/91585/non-english Del: in docs -- https://master.php.net/note/delete/91585/in+docs Del: other reasons-- https://master.php.net/note/delete/91585 Reject -- https://master.php.net/note/reject/91585 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157044) next »