Fix backport

This commit is contained in:
Git'Fellow 2022-05-16 12:28:50 +02:00 committed by GitHub
parent eafa64d5a5
commit 5effc7320e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,15 +245,19 @@ class CertificateManager implements ICertificateManager {
* @return string
*/
public function getAbsoluteBundlePath(): string {
if (!$this->hasCertificates()) {
return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
if (!$this->bundlePath) {
if (!$this->hasCertificates()) {
$this->bundlePath = \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
}
if ($this->needsRebundling()) {
$this->createCertificateBundle();
}
$this->bundlePath = $this->view->getLocalFile($this->getCertificateBundle());
}
if ($this->needsRebundling()) {
$this->createCertificateBundle();
}
return $this->view->getLocalFile($this->getCertificateBundle());
return $this->bundlePath;
}
/**