Trigger warning if empty array or false and X-Forwarded-Host is present
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
3855d78b2c
commit
ff629ad158
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 ($trustedProxies === [] && $this->request->getHeader('X-Forwarded-Host') !== '') {
|
||||
if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue