aboutsummaryrefslogtreecommitdiffstats
path: root/storage-backend
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2016-02-05 14:21:39 +0100
committerlookshe <github@lookshe.org>2016-02-05 14:21:39 +0100
commit31da8eb9ef38af5c9cc05c76342a34fa2fb8b97c (patch)
treec6a7b540cd12246a2a36dbd8048945c4c7365981 /storage-backend
parent14cc1291edc0002645d7a24d964cda155d0ccd81 (diff)
Update index.php0.1xep0363
PUT needs to save the file with decoded filename
Diffstat (limited to 'storage-backend')
-rw-r--r--storage-backend/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage-backend/index.php b/storage-backend/index.php
index 5d70b79..8b5f2b4 100644
--- a/storage-backend/index.php
+++ b/storage-backend/index.php
@@ -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.");
}
@@ -250,4 +250,4 @@ function generate_uuid() {
mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )
);
}
-?> \ No newline at end of file
+?>