summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-03-20 19:59:32 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-03-20 20:00:20 +0100
commitff629ad158a6e2b1ae0202733e31f1ae14723d96 (patch)
treeeda6eb480412c442bcaea5f4e63eabf64688af2d /settings
parent3855d78b2cf5c369f851e289297dd937bbaff3d6 (diff)
downloadnextcloud-server-ff629ad158a6e2b1ae0202733e31f1ae14723d96.tar.gz
nextcloud-server-ff629ad158a6e2b1ae0202733e31f1ae14723d96.zip
Trigger warning if empty array or false and X-Forwarded-Host is present
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
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 372a0a35e85..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 ($trustedProxies === [] && $this->request->getHeader('X-Forwarded-Host') !== '') {
+ if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') {
return false;
}