mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Fix backport
This commit is contained in:
parent
eafa64d5a5
commit
5effc7320e
1 changed files with 11 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue