mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-06 14:19:23 +08:00
Fixes #14902: Fixed PHP notice in yii\web\MultipartFormDataParser
This commit is contained in:

committed by
Alexander Makarov

parent
792f50759e
commit
b75a85d0da
@ -262,7 +262,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