mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix missing array keys if files are uploaded as a two-dimensional array
This commit is contained in:
parent
d1527ecc90
commit
3041d315b0
1 changed files with 3 additions and 1 deletions
|
|
@ -1368,7 +1368,9 @@ class Context
|
|||
$file['tmp_name'] = $val['tmp_name'][$i];
|
||||
$file['error'] = $val['error'][$i];
|
||||
$file['size'] = $val['size'][$i];
|
||||
$files[] = $file;
|
||||
|
||||
$subkey = (is_int($i) || ctype_digit($i)) ? intval($i) : preg_replace('/[^a-z0-9:+=_-]/i', '', (string)$i);
|
||||
$files[$subkey] = $file;
|
||||
}
|
||||
if(count($files))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue