mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
This commit is contained in:
committed by
Alexander Makarov
parent
b5be47321b
commit
3221ab0769
@ -4,6 +4,7 @@ Yii Framework 2 Change Log
|
||||
2.0.16 under development
|
||||
------------------------
|
||||
|
||||
- Bug #15683: Fixed file as array uploading in MultipartFormDataParser (Groonya)
|
||||
- Bug #16822: Create config dir recursively in message/config (Groonya)
|
||||
- Bug #16580: Delete unused php message files in MessageController if `$removeUnused` option is on (Groonya)
|
||||
- Bug #16022: Fix UniqueValidator for PostgreSQL. Checks the uniqueness of keys in `jsonb` field (lav45)
|
||||
|
||||
@ -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