aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-07-27 12:58:07 +0200
committerRobin Appelman <robin@icewind.nl>2022-07-27 12:58:07 +0200
commit61fdd91dcf6a17f97f2a416caee2ba39982f3b08 (patch)
treef8f2c68f1c66def0e6f8f558158800915c354d9e /lib
parent6206b312b2596fc465e0af994e58953b40e27cee (diff)
downloadnextcloud-server-61fdd91dcf6a17f97f2a416caee2ba39982f3b08.tar.gz
nextcloud-server-61fdd91dcf6a17f97f2a416caee2ba39982f3b08.zip
don't set `null` as a bundle path
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-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 0b2fd95c652..9d692e01a23 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();