note 61362 added to function.get-magic-quotes-gpc
| From: | millerrd at gmail dot com | Date: | Wed, 01 Feb 2006 17:37:38 +0000 |
| Subject: | note 61362 added to function.get-magic-quotes-gpc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102822@lists.php.net to get a copy of this message | ||
The code posted on the get_magic_quotes_gpc site didn't work. Here's the correct code
posted by: gilthansNOSPAM 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);
}
----
Server IP: 216.194.113.175
Probable Submitter: 71.193.229.141
----
Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61362
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61362&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61362&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61362&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61362&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61362&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61362&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61362&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61362&report=yes
Search -- http://master.php.net/manage/user-notes.php