Skip to content

Commit 4b4b39e

Browse files
author
Daan Selen
committed
fix(ObjectStoreStorage): Encode original-path in writeStream by @frabe1579
Signed-off-by: Daan Selen <[email protected]>
1 parent 2ea30f9 commit 4b4b39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/ObjectStore/ObjectStoreStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public function writeStream(string $path, $stream, ?int $size = null): int {
480480
$metadata = [
481481
'mimetype' => $mimetype,
482482
'original-storage' => $this->getId(),
483-
'original-path' => $path,
483+
'original-path' => rawurlencode($path),
484484
];
485485
if ($size) {
486486
$metadata['size'] = $size;

0 commit comments

Comments
 (0)