diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-03-20 19:59:32 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-03-20 20:00:20 +0100 |
commit | ff629ad158a6e2b1ae0202733e31f1ae14723d96 (patch) | |
tree | eda6eb480412c442bcaea5f4e63eabf64688af2d /settings | |
parent | 3855d78b2cf5c369f851e289297dd937bbaff3d6 (diff) | |
download | nextcloud-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.php | 2 |
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; } |