note 69024 added to security.magicquotes.disabling
| From: | dedlfix at osu1 dot php dot net | Date: | Sun, 20 Aug 2006 12:18:11 +0000 |
| Subject: | note 69024 added to security.magicquotes.disabling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116083@lists.php.net to get a copy of this message | ||
The function stripslashes_deep() ignores slashes in the keys
For example a query string like this: ?foo'bar=baz'bal
Output of var_dump($_GET) is:
array(1) {
["foo\'bar"]=>
string(8) "baz\'bal"
}
after stripslashes_deep():
array(1) {
["foo\'bar"]=>
string(7) "baz'bal"
}
If you want the keys to be stripslashed too, you have to unset() the addslahed key and to add a
stripslashed version. But keep in mind that this will change the order of the array.
----
Server IP: 212.124.37.9
Probable Submitter: 84.179.242.34 (proxied: unknown)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/security.magicquotes.disabling.php
Edit -- https://master.php.net/note/edit/69024
Del: integrated -- https://master.php.net/note/delete/69024/integrated
Del: useless -- https://master.php.net/note/delete/69024/useless
Del: bad code -- https://master.php.net/note/delete/69024/bad+code
Del: spam -- https://master.php.net/note/delete/69024/spam
Del: non-english -- https://master.php.net/note/delete/69024/non-english
Del: in docs -- https://master.php.net/note/delete/69024/in+docs
Del: other reasons-- https://master.php.net/note/delete/69024
Reject -- https://master.php.net/note/reject/69024
Search -- https://master.php.net/manage/user-notes.php