#25836 [Opn->Fbk]: strange behavior magic_quotes with multi-dimensional arrays

From: Date: Mon, 13 Oct 2003 03:03:30 +0000
Subject: #25836 [Opn->Fbk]: strange behavior magic_quotes with multi-dimensional arrays
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48886@lists.php.net to get a copy of this message
ID: 25836 Updated by: sniper@php.net Reported By: sitnikov at infonet dot ee -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 4.3.4RC1 New Comment: Can not reproduce with latest STABLE CVS. Please provide more information how to reproduce. 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 (#48886) next »