aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-14 08:38:15 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-14 08:38:15 +0200
commitbdf69817bef177778e55ef79a6a17fd211cb3a59 (patch)
tree72b975ca43fb3d66674f9edde5ce715f5f5edb26
parent9ebc369d74305d0771f96ecb1e31a14a912ce42f (diff)
parent655f244c4f2fc871273406dd316551f4c2120a52 (diff)
downloadforums-bdf69817bef177778e55ef79a6a17fd211cb3a59.tar
forums-bdf69817bef177778e55ef79a6a17fd211cb3a59.tar.gz
forums-bdf69817bef177778e55ef79a6a17fd211cb3a59.tar.bz2
forums-bdf69817bef177778e55ef79a6a17fd211cb3a59.tar.xz
forums-bdf69817bef177778e55ef79a6a17fd211cb3a59.zip
Merge pull request #3968 from prototech/ticket/13835
[ticket/13835] Normalize filename for attachments uploaded in chunks. * prototech/ticket/13835: [ticket/13835] Normalize filename for attachments uploaded in chunks.
-rw-r--r--phpBB/phpbb/plupload/plupload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/plupload/plupload.php b/phpBB/phpbb/plupload/plupload.php
index ca78167ec0..7f6267ed32 100644
--- a/phpBB/phpbb/plupload/plupload.php
+++ b/phpBB/phpbb/plupload/plupload.php
@@ -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),
);