diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-03-09 16:14:54 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-03-20 12:18:42 +0100 |
commit | 3855d78b2cf5c369f851e289297dd937bbaff3d6 (patch) | |
tree | d3f2a7cee71a1dac75161893468da8805082e995 /settings/Controller | |
parent | 69f18712ead12d02b63fb5af2cb8e02bab4dc2df (diff) | |
download | nextcloud-server-3855d78b2cf5c369f851e289297dd937bbaff3d6.tar.gz nextcloud-server-3855d78b2cf5c369f851e289297dd937bbaff3d6.zip |
Make check for empty trusted proxies more strict
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'settings/Controller')
-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 b23c48f4466..372a0a35e85 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 ($trustedProxies === [] && $this->request->getHeader('X-Forwarded-Host') !== '') { return false; } |