php-src/tests/basic/bug78236.phpt
Christoph M. Becker fc4d462e94 Fix #78236: convert error on receiving variables when duplicate [
When an input variable name contains a non matched open bracket, we not
only have to replace that with an underscore, but also all following
forbidden characters.
2020-07-23 15:48:09 +02:00

18 lines
277 B
PHP

--TEST--
Bug #78236 (convert error on receiving variables when duplicate [)
--POST--
id[name=1&id[[name=a&id[na me.=3
--FILE--
<?php
var_dump($_POST);
?>
--EXPECT--
array(3) {
["id_name"]=>
string(1) "1"
["id__name"]=>
string(1) "a"
["id_na_me_"]=>
string(1) "3"
}