diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index b7017583dc279..feb6a9f729cfc 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -35,7 +35,7 @@ protected function parseParams($params) { $this->id = 'amazon::' . $params['bucket']; $this->test = isset($params['test']); - $this->bucket = $params['bucket']; + $this->bucket = trim($params['bucket']); // Default to 5 like the S3 SDK does $this->concurrency = $params['concurrency'] ?? 5; $this->proxy = $params['proxy'] ?? false;