mirror of
https://github.com/nextcloud/server.git
synced 2026-03-29 22:03:27 -04:00
fix(s3): fix handling verify_bucket_exists parameter
If 'verify_bucket_exists' is set to false in the config.php s3 configuration, it's supposed to avoid verifying that the bucket exists. However empty(falsy) will always return true, so this condition would not work. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
3519f20add
commit
fe618feeb0
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ trait S3ConnectionTrait {
|
|||
if (!isset($params['port']) || $params['port'] === '') {
|
||||
$params['port'] = (isset($params['use_ssl']) && $params['use_ssl'] === false) ? 80 : 443;
|
||||
}
|
||||
$params['verify_bucket_exists'] = empty($params['verify_bucket_exists']) ? true : $params['verify_bucket_exists'];
|
||||
$params['verify_bucket_exists'] = $params['verify_bucket_exists'] ?? true;
|
||||
$this->params = $params;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue