Bläddra i källkod

Update Request.php

walkor 3 år sedan
förälder
incheckning
6652d4929d
1 ändrade filer med 4 tillägg och 0 borttagningar
  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;