Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-11-09 17:25:04 +0300
committerJulius Härtl <jus@bitgrid.net>2021-11-10 13:00:01 +0300
commitb7ee4bdc8133abb748d107b61054fb1a41fb9a56 (patch)
treec8d86b28a267af9c066024af4442b0fd5dd59920
parent4695297f7667cde585d87f74d1ed7f42e8e64e4c (diff)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--apps/dav/lib/Upload/ChunkingV2Plugin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Upload/ChunkingV2Plugin.php b/apps/dav/lib/Upload/ChunkingV2Plugin.php
index 629f18a8af2..3aa7f4669cd 100644
--- a/apps/dav/lib/Upload/ChunkingV2Plugin.php
+++ b/apps/dav/lib/Upload/ChunkingV2Plugin.php
@@ -45,6 +45,8 @@ use Sabre\DAV\Xml\Response\MultiStatus;
use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;
use Sabre\Uri;
+use function Sabre\HTTP\decodePath;
+use function Sabre\Uri\normalize;
class ChunkingV2Plugin extends ServerPlugin {
@@ -99,7 +101,7 @@ class ChunkingV2Plugin extends ServerPlugin {
return true;
}
- $targetPath = $this->server->httpRequest->getHeader(self::DESTINATION_HEADER);
+ $targetPath = decodePath(normalize($this->server->httpRequest->getHeader(self::DESTINATION_HEADER)));
if (!$targetPath) {
return true;
}