Skip to content

Commit ef21c79

Browse files
authored
Merge pull request #55717 from DaanSelen/fix-issue-55665
fix(ObjectStoreStorage): fix s3 path encoding (issue causing 55665)
2 parents a26d2a5 + 4b4b39e commit ef21c79

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)