#48794 [Opn->Bgs]: Unclosed array keys break space escaping in $_GET/POST/REQUEST
| From: | jani@php.net | Date: | Sat, 04 Jul 2009 22:21:47 +0000 |
| Subject: | #48794 [Opn->Bgs]: Unclosed array keys break space escaping in $_GET/POST/REQUEST | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139260@lists.php.net to get a copy of this message | ||
ID: 48794
Updated by: jani@php.net
Reported By: tolkad dot freenode at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: URL related
Operating System: *
PHP Version: 5.2.10
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
See bug #48597
Previous Comments:
------------------------------------------------------------------------
[2009-07-03 18:55:02] tolkad dot freenode at gmail dot com
Description:
------------
PHP normally replaces spaces, periods, and unclosed [ with underscores
in $_GET/$_POST/$_REQUEST. After an unclosed [, it ceases to do this.
Reproduce code:
---------------
/*
With a url like ?x[ x=x
*/
print_r($_GET);
Expected result:
----------------
Array
(
[x__x] => x
)
Actual result:
--------------
Array
(
[x_ x] => x
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48794&edit=1