Browse Source
Merge pull request #14606 from nextcloud/bugfix/stricter-check-trusted-proxy
Make check for empty trusted proxies more strict
pull/14786/head
Morris Jobke
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
|