diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-03-03 09:42:26 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-05-31 17:24:37 +0200 |
commit | 3b4061c3455be705bdb4c84acd12d5ba9ab5bfe0 (patch) | |
tree | 94ed5fae286a97b5b28e960ab6bd892fc32dab63 | |
parent | 595757944509c5b4f58099d50d6cb9948981f948 (diff) | |
download | nextcloud-server-trimBucketDnsName.tar.gz nextcloud-server-trimBucketDnsName.zip |
fix(s3): Trim the bucket name to make it DNS compatibletrimBucketDnsName
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-rw-r--r-- | lib/private/Files/ObjectStore/S3ConnectionTrait.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index b7017583dc2..feb6a9f729c 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -35,7 +35,7 @@ trait S3ConnectionTrait { $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; |