note 76620 added to function.get-magic-quotes-gpc
| From: | mjsabby at gmail dot com | Date: | Mon, 23 Jul 2007 12:05:21 +0000 |
| Subject: | note 76620 added to function.get-magic-quotes-gpc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128839@lists.php.net to get a copy of this message | ||
function stripslashes_deep($value)
{
$value = is_array($value) ?
array_map('stripslashes_deep', $value) :
stripslashes($value);
return $value;
}
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
$_GET = stripslashes_recursive($_GET);
$_POST = stripslashes_recursive($_POST);
$_COOKIE = stripslashes_recursive($_COOKIE);
$_REQUEST = stripslashes_recursive($_REQUEST);
}
----
Server IP: 208.69.120.35
Probable Submitter: 12.216.42.218
----
Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php
Edit -- https://master.php.net/note/edit/76620
Del: integrated -- https://master.php.net/note/delete/76620/integrated
Del: useless -- https://master.php.net/note/delete/76620/useless
Del: bad code -- https://master.php.net/note/delete/76620/bad+code
Del: spam -- https://master.php.net/note/delete/76620/spam
Del: non-english -- https://master.php.net/note/delete/76620/non-english
Del: in docs -- https://master.php.net/note/delete/76620/in+docs
Del: other reasons-- https://master.php.net/note/delete/76620
Reject -- https://master.php.net/note/reject/76620
Search -- https://master.php.net/manage/user-notes.php