#25836 [Ver->Csd]: strange behavior magic_quotes with multi-dimensional arrays

From: Date: Tue, 14 Oct 2003 03:49:17 +0000
Subject: #25836 [Ver->Csd]: strange behavior magic_quotes with multi-dimensional arrays
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48956@lists.php.net to get a copy of this message
ID: 25836 Updated by: iliaa@php.net Reported By: sitnikov at infonet dot ee -Status: Verified +Status: Closed Bug Type: *General Issues Operating System: Linux PHP Version: 4CVS, 5CVS New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-10-11 08:57:34] sitnikov at infonet dot ee Description: ------------ Only "first level keys" was slashed. Reproduce code: --------------- <? echo "<pre>";print_r($_POST);echo "</pre>"; ?> <form method="POST"> <input type=text name="test['aaa']['bbb']" value="'"> <input type=submit> </form> Expected result: ---------------- Array ( [test] => Array ( [\'aaa\'] => Array ( [\'bbb\'] => \' ) ) ) Actual result: -------------- Array ( [test] => Array ( [\'aaa\'] => Array ( ['bbb'] => \' ) ) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25836&edit=1

« previous php.bugs (#48956) next »