Skip to content

Commit f7cbcf1

Browse files
URL-encode the CopySource argument
1 parent 235ae80 commit f7cbcf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncAwsS3/AsyncAwsS3Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function copy(string $source, string $destination, Config $config): void
357357
'ACL' => $this->visibility->visibilityToAcl($visibility ?: 'private'),
358358
'Bucket' => $this->bucket,
359359
'Key' => $this->prefixer->prefixPath($destination),
360-
'CopySource' => $this->bucket . '/' . $this->prefixer->prefixPath($source),
360+
'CopySource' => rawurlencode($this->bucket . '/' . $this->prefixer->prefixPath($source)),
361361
];
362362

363363
try {

0 commit comments

Comments
 (0)