summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-21 09:15:27 +0100
committerGitHub <noreply@github.com>2019-03-21 09:15:27 +0100
commitaee0b7693b228ff20f675b0a04fe723bb94767cf (patch)
tree5bcfd9773b5caaf66f2badbf64c9b8f702b367ea /settings
parent6ea5beccd7f74bb13fdec02b5720e1ef2a5652f2 (diff)
parentff629ad158a6e2b1ae0202733e31f1ae14723d96 (diff)
downloadnextcloud-server-aee0b7693b228ff20f675b0a04fe723bb94767cf.tar.gz
nextcloud-server-aee0b7693b228ff20f675b0a04fe723bb94767cf.zip
Merge pull request #14606 from nextcloud/bugfix/stricter-check-trusted-proxy
Make check for empty trusted proxies more strict
Diffstat (limited to 'settings')
-rw-r--r--settings/Controller/CheckSetupController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php
index b23c48f4466..9b4dc1c0956 100644
--- a/settings/Controller/CheckSetupController.php
+++ b/settings/Controller/CheckSetupController.php
@@ -289,7 +289,7 @@ class CheckSetupController extends Controller {
$trustedProxies = $this->config->getSystemValue('trusted_proxies', []);
$remoteAddress = $this->request->getHeader('REMOTE_ADDR');
- if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host')) {
+ if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') {
return false;
}