Bug #48794 [Nab->Dup]: Unclosed array keys break space escaping in $_GET/POST/REQUEST
| From: | cmb@php.net | Date: | Wed, 29 Jul 2015 19:05:06 +0000 |
| Subject: | Bug #48794 [Nab->Dup]: Unclosed array keys break space escaping in $_GET/POST/REQUEST | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194823@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=48794&edit=1
ID: 48794
Updated by: cmb@php.net
Reported by: tolkad dot freenode at gmail dot com
Summary: Unclosed array keys break space escaping in
$_GET/POST/REQUEST
-Status: Not a bug
+Status: Duplicate
Type: Bug
Package: *General Issues
Operating System: *
PHP Version: 5.2.10
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2009-07-04 22:21:47] jani@php.net
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
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=48794&edit=1