note 72648 added to function.stripslashes
| From: | Tim at osu1 dot php dot net | Date: | Sat, 27 Jan 2007 21:01:56 +0000 |
| Subject: | note 72648 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122281@lists.php.net to get a copy of this message | ||
Hi,
here's a solution vor hauser's note. It's shorter and faster then
"stripslashes_deep" example.
<?php
if (get_magic_quotes_gpc())
{
$_REQUEST = array_map('stripslashes', $_REQUEST);
$_POST = array_map('stripslashes', $_POST);
$_GET = array_map('stripslashes', $_GET);
$_COOKIE = array_map('stripslashes', $_COOKIE);
}
?>
----
Server IP: 217.160.72.57
Probable Submitter: 84.137.224.192
----
Manual Page -- http://www.php.net/manual/en/function.stripslashes.php
Edit -- https://master.php.net/note/edit/72648
Del: integrated -- https://master.php.net/note/delete/72648/integrated
Del: useless -- https://master.php.net/note/delete/72648/useless
Del: bad code -- https://master.php.net/note/delete/72648/bad+code
Del: spam -- https://master.php.net/note/delete/72648/spam
Del: non-english -- https://master.php.net/note/delete/72648/non-english
Del: in docs -- https://master.php.net/note/delete/72648/in+docs
Del: other reasons-- https://master.php.net/note/delete/72648
Reject -- https://master.php.net/note/reject/72648
Search -- https://master.php.net/manage/user-notes.php