Update index.php
PUT needs to save the file with decoded filename
This commit is contained in:
parent
14cc1291ed
commit
31da8eb9ef
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ switch ($method) {
|
|||
if (!checkFilenameParameter($filename, $slotParameters)) {
|
||||
sendHttpReturnCodeAndJson(403, "Uploaded filename differs from requested slot filename.");
|
||||
}
|
||||
$uploadFilePath = getUploadFilePath($slotUUID, $config, $slotParameters['filename']);
|
||||
$uploadFilePath = rawurldecode(getUploadFilePath($slotUUID, $config, $slotParameters['filename']));
|
||||
if (file_exists($uploadFilePath)) {
|
||||
sendHttpReturnCodeAndJson(403, "The slot was already used.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue