Merge pull request #14606 from nextcloud/bugfix/stricter-check-trusted-proxy
Make check for empty trusted proxies more strict
This commit is contained in:
commit
aee0b7693b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue