|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-24 23:27 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 16:00:01 2025 UTC |
Description: ------------ urldecoding seems to be done before arguemtns get split for $_REQUEST etc. Thus foo=test%026test becomes: foo=test test= instead of foo=test&test worked correctly in php 4.3.3. Reproduce code: --------------- <? if (isset($_REQUEST['foo'])) { echo "<tt>'" . $_REQUEST['foo'] . "'</tt> -- "; print_r($_REQUEST); } ?> Expected result: ---------------- GET test.php?foo=test+test Expected: 'test test' -- Array ( [foo] => test test ) -> As expected GET test.php?foo=test+test%26test Expected: 'test test&test' -- Array ( [foo] => test test&test ) Actual result: -------------- GET test.php?foo=test+test Result: 'test test' -- Array ( [foo] => test test ) -> As expected GET test.php?foo=test+test%26test Result: 'test test' -- Array ( [foo] => test test [test] => ) -> BUG.