瀏覽代碼

Update Request.php

walkor 3 年之前
父節點
當前提交
6652d4929d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Protocols/Http/Request.php

+ 4 - 0
src/Protocols/Http/Request.php

@@ -586,6 +586,10 @@ class Request
         }
         $files_unique = [];
         foreach ($files as $index => $file) {
+            if (!isset($file['key'])) {
+                unset($files[$index]);
+                continue;
+            }
             $key = $file['key'];
             if (\substr($key, -2) === '[]') {
                 $key = $index;