]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't set `null` as a bundle path 33383/head
authorRobin Appelman <robin@icewind.nl>
Wed, 27 Jul 2022 10:58:07 +0000 (12:58 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 27 Jul 2022 13:50:05 +0000 (13:50 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/ObjectStore/S3ObjectTrait.php

index a92c5c139ea06a42340d9bae0820c9a199e9b15a..0458079b66cb6c04b5c9f6967ec31ad9d0aec282 100644 (file)
@@ -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();