#41093 [NEW]: magic_quotes_gpc ignores first arrays keys
| From: | arpad@php.net | Date: | Sun, 15 Apr 2007 09:58:58 +0000 |
| Subject: | #41093 [NEW]: magic_quotes_gpc ignores first arrays keys | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-111502@lists.php.net to get a copy of this message | ||
From: arpad@php.net
Operating system: Irrelevant
PHP version: 5.2.1
PHP Bug Type: Scripting Engine problem
Bug description: magic_quotes_gpc ignores first arrays keys
Description:
------------
When magic_quotes_gpc is on, it ignores the keys of array values in $_GET
etc, despite escaping keys of scalar values and all keys in contained
arrays. For example, the query string ?a'b=1 yields $_GET[a\'b] = 1, but
?a'b[a'b]=1 yields $_GET[a'b][a\'b] = 1.
http://www.rajeczy.com/compat_gpc_tests.txt
Reproduce code:
---------------
?a'b[a'b]=1
Expected result:
----------------
$_GET[a\'b][a\'b] = 1
Actual result:
--------------
$_GET[a'b][a\'b] = 1
--
Edit bug report at http://bugs.php.net/?id=41093&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41093&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41093&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41093&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41093&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41093&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41093&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41093&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41093&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41093&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41093&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41093&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41093&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41093&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41093&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41093&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41093&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41093&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41093&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41093&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41093&r=mysqlcfg