mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-06 15:28:58 +01:00
This commit is contained in:
committed by
Alexander Makarov
parent
b5be47321b
commit
3221ab0769
@@ -320,7 +320,8 @@ class MultipartFormDataParser extends BaseObject implements RequestParserInterfa
|
||||
$namePart = trim($namePart, ']');
|
||||
if ($namePart === '') {
|
||||
$current[] = [];
|
||||
$lastKey = array_pop(array_keys($current));
|
||||
$keys = array_keys($current);
|
||||
$lastKey = array_pop($keys);
|
||||
$current = &$current[$lastKey];
|
||||
} else {
|
||||
if (!isset($current[$namePart])) {
|
||||
|
||||
Reference in New Issue
Block a user