We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406e0dd commit 3075eebCopy full SHA for 3075eeb
main/inc/ajax/dropbox.ajax.php
@@ -82,7 +82,12 @@
82
foreach ($fileList as $file) {
83
if (isset($_REQUEST['chunkAction']) && 'done' === $_REQUEST['chunkAction']) {
84
// to rename and move the finished file
85
- $chunkedFile = api_get_path(SYS_ARCHIVE_PATH).$file['name'];
+ $tmpFile = disable_dangerous_file(
86
+ api_replace_dangerous_char($file['name'])
87
+ );
88
+
89
+ // to rename and move the finished file
90
+ $chunkedFile = api_get_path(SYS_ARCHIVE_PATH).$tmpFile;
91
$file['tmp_name'] = $chunkedFile;
92
$file['size'] = filesize($chunkedFile);
93
$file['copy_file'] = true;
0 commit comments