[ticket/13835] Normalize filename for attachments uploaded in chunks.

PHPBB3-13835
This commit is contained in:
Cesar G 2015-10-13 20:17:26 -07:00
parent 1164cc38a2
commit 655f244c4f

View file

@ -125,7 +125,7 @@ class plupload
// Need to modify some of the $_FILES values to reflect the new file
return array(
'tmp_name' => $file_path,
'name' => $this->request->variable('real_filename', ''),
'name' => $this->request->variable('real_filename', '', true),
'size' => filesize($file_path),
'type' => $this->mimetype_guesser->guess($file_path, $file_name),
);