Skip to content

Commit 0da8221

Browse files
authored
Merge pull request #24499 from nextcloud/fix/noid/harden-setup-checks
Harden setup check for TLS version if host is not reachable
2 parents d8b8c98 + fe79a1a commit 0da8221

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/settings/lib/Controller/CheckSetupController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ private function isUsedTlsLibOutdated() {
262262
if ($e->getResponse()->getStatusCode() === 400) {
263263
return $this->l10n->t('cURL is using an outdated %1$s version (%2$s). Please update your operating system or features such as %3$s will not work reliably.', ['NSS', $versionString, $features]);
264264
}
265+
} catch (\Exception $e) {
266+
$this->logger->logException($e, ['app' => 'settings', 'level' => \OCP\ILogger::WARN]);
267+
return $this->l10n->t('Could not determine if TLS version of cURL is outdated or not because an error happened during the HTTPS request against https://nextcloud.com. Please check the nextcloud log file for more details.');
265268
}
266269
}
267270

0 commit comments

Comments
 (0)