note 50338 added to function.addslashes
| From: | caya at osu1 dot php dot net | Date: | Fri, 25 Feb 2005 02:06:39 +0000 |
| Subject: | note 50338 added to function.addslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85518@lists.php.net to get a copy of this message | ||
What I said is that if get_magic_quotes_gpc() is 1 (on) then the Get, Post and Cookie data is dirty
(you have something in memory the user didn't type). You need to clean it up by calling
stripslashes.
The code I sent was wrong, please read the code in get_magic_quotes_gpc(), which is the place I
should put this comment in the first place :-)
----
Manual Page -- http://www.php.net/manual/en/function.addslashes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50338
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50338&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50338&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50338&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50338&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50338&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50338&report=yes
Search -- http://master.php.net/manage/user-notes.php