Skip to content

Commit 7808df5

Browse files
Merge pull request #62183 from nextcloud/backport/61914/stable34
[stable34] fix(s3): trim multiple spaces to single space in original path header
2 parents 38d0231 + 934e777 commit 7808df5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/ObjectStore/ObjectStoreStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public function writeStream(string $path, $stream, ?int $size = null): int {
500500
$metadata = [
501501
'mimetype' => $mimetype,
502502
'original-storage' => $this->getId(),
503-
'original-path' => $path,
503+
'original-path' => preg_replace('/\s+/', ' ', $path) ?? $path,
504504
];
505505
if ($size) {
506506
$metadata['size'] = $size;

0 commit comments

Comments
 (0)