Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-08-01 21:37:57 +0300
committerGitHub <noreply@github.com>2022-08-01 21:37:57 +0300
commitbb94d2c1910ee1104069b99bad8eda5b331b0733 (patch)
treecd0e5bc3bcdda3a3399c7df88138d787170bd66f
parent8ac46a6645d539fd36300fb04fd7d2c12d41f425 (diff)
parentdb86e92d050ec2797e2aa04cb6c788318eafee5f (diff)
Merge pull request #33383 from nextcloud/backport/33378/stable23
[stable23] don't set `null` as a bundle path
-rw-r--r--lib/private/Files/ObjectStore/S3ObjectTrait.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php
index a92c5c139ea..0458079b66c 100644
--- a/lib/private/Files/ObjectStore/S3ObjectTrait.php
+++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php
@@ -69,11 +69,14 @@ trait S3ObjectTrait {
'http' => [
'protocol_version' => $request->getProtocolVersion(),
'header' => $headers,
- ],
- 'ssl' => [
- 'cafile' => $this->getCertificateBundlePath()
]
];
+ $bundle = $this->getCertificateBundlePath();
+ if ($bundle) {
+ $opts['ssl'] = [
+ 'cafile' => $bundle
+ ];
+ }
if ($this->getProxy()) {
$opts['http']['proxy'] = $this->getProxy();