aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2025-03-03 09:42:26 +0100
committerGitHub <noreply@github.com>2025-03-03 09:42:26 +0100
commitecf3abdff128597b54f12c3080d222fa9e696b13 (patch)
treeb68896af9e1b5183d8caa247b908629dc1aab8f6
parent2dfc9eae17d4599f65ae8f4240fc8144485261f9 (diff)
downloadnextcloud-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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
index 65fc61ffa77..4acf1b4bef7 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;