diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-11-09 17:25:04 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-11-10 13:00:01 +0300 |
commit | b7ee4bdc8133abb748d107b61054fb1a41fb9a56 (patch) | |
tree | c8d86b28a267af9c066024af4442b0fd5dd59920 | |
parent | 4695297f7667cde585d87f74d1ed7f42e8e64e4c (diff) |
Decode path and normalize it earlyupdate/update/nmcrel/22.2.0-nmcfix/27034-s3-multipart/2021-11-10
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | apps/dav/lib/Upload/ChunkingV2Plugin.php | 4 |
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; } |