note 53451 added to function.addslashes
| From: | thezapper303*at*gmx dot de at osu1 dot php dot net | Date: | Thu, 02 Jun 2005 01:49:21 +0000 |
| Subject: | note 53451 added to function.addslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89761@lists.php.net to get a copy of this message | ||
This code can be inserted somewhere in your application (near the start):
if (get_magic_quotes_gpc()) {
// Yes? Strip the added slashes
$_REQUEST = array_map('stripslashes', $_REQUEST);
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
}
----
Manual Page -- http://www.php.net/manual/en/function.addslashes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53451
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53451&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53451&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53451&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53451&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53451&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53451&report=yes
Search -- http://master.php.net/manage/user-notes.php