Explorar el Código

Update Request.php

walkor hace 3 años
padre
commit
6652d4929d
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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;