mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
fc4d462e94
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.
18 lines
277 B
PHP
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"
|
|
}
|