]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make check for empty trusted proxies more strict
authorDaniel Kesselberg <mail@danielkesselberg.de>
Sat, 9 Mar 2019 15:14:54 +0000 (16:14 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 20 Mar 2019 11:18:42 +0000 (12:18 +0100)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
settings/Controller/CheckSetupController.php

index b23c48f44663427dbe8bdae205fe0c4e3ca9f93e..372a0a35e8500945fa414bd41ca83a980896bb74 100644 (file)
@@ -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;
                }