From f47a2bbcae72f9fa1e52fe3c28d98b7edfe9535e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 20 Nov 2023 15:45:46 +0100 Subject: [PATCH] =?UTF-8?q?Improve=20wrong=20configuration=20error=20messa?= =?UTF-8?q?ge=20when=20we=20know=20it=E2=80=99s=20wrong.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/settings/lib/SetupChecks/ForwardedForHeaders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/settings/lib/SetupChecks/ForwardedForHeaders.php b/apps/settings/lib/SetupChecks/ForwardedForHeaders.php index 140888835af..5ba966f380b 100644 --- a/apps/settings/lib/SetupChecks/ForwardedForHeaders.php +++ b/apps/settings/lib/SetupChecks/ForwardedForHeaders.php @@ -64,8 +64,8 @@ class ForwardedForHeaders implements ISetupCheck { } if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') { - return SetupResult::warning( - $this->l10n->t('The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. If not, this is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud.'), + return SetupResult::error( + $this->l10n->t('The reverse proxy header configuration is incorrect. This is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud.'), $this->urlGenerator->linkToDocs('admin-reverse-proxy') ); }