Skip to content

Commit d9c70da

Browse files
committed
fix: use utf8_encode to prevent issues json encoding file paths
1 parent f1f7f7c commit d9c70da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Command/Uploads/ImportUploadsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private function getAdapter(string $path): FilesystemAdapter
183183
private function getSignedUploadRequest(string $environment, Enumerable $files): array
184184
{
185185
return $this->apiClient->getSignedUploadRequests($this->projectConfiguration->getProjectId(), $environment, $files->map(function (string $filePath) {
186-
return ['path' => $filePath];
186+
return ['path' => utf8_encode($filePath)];
187187
})->all())->all();
188188
}
189189
}

src/Deployment/ProcessAssetsStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function perform(Collection $deployment, OutputInterface $output)
6565
$assetFiles = $this->getAssetFiles();
6666
$signedAssetRequests = $this->apiClient->getSignedAssetRequests($deployment->get('id'), $assetFiles->map(function (array $asset) {
6767
return [
68-
'path' => $asset['relative_path'],
68+
'path' => utf8_encode($asset['relative_path']),
6969
'hash' => $asset['hash'],
7070
];
7171
})->all());

0 commit comments

Comments
 (0)