note 58271 added to function.get-magic-quotes-gpc
| From: | eddiedotbishopatgmaildotcom at osu1 dot php dot net | Date: | Sat, 29 Oct 2005 14:31:12 +0000 |
| Subject: | note 58271 added to function.get-magic-quotes-gpc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97797@lists.php.net to get a copy of this message | ||
If you have inputs like this in a form:
<input type=hidden name="one[bl's]" value="stuff's" />
<input type=hidden name="bl's" value="val's" />
and you submit it, the NAMES of the variables will ALWAYS be magic-quoted, even if magic_quotes is
OFF. However, the VALUES of the variables will be magic-quoted only if magic-quotes is turned on.
In the above case, even if magic quotes is off, your POST data will look something like this:
$_POST = array(
one = array(
bl\'s = stuff's
),
bl\'s = val's
)
Notice how the values of the variables were not magic-quoted, but the NAMES of the variables were
quoted.
Tested in PHP 5.0.4, Windows NT 5.1 build 2600
----
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+58271
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58271&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58271&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58271&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58271&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58271&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58271&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58271&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58271&report=yes
Search -- http://master.php.net/manage/user-notes.php