diff options
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php index 5905aa0406f..cdc662c28d9 100644 --- a/lib/base.php +++ b/lib/base.php @@ -626,7 +626,6 @@ class OC { return; } - $trustedDomainHelper = new \OC\Security\TrustedDomainHelper(\OC::$server->getConfig()); $request = \OC::$server->getRequest(); $host = $request->getInsecureServerHost(); /** @@ -637,7 +636,7 @@ class OC { // overwritehost is always trusted, workaround to not have to make // \OC\AppFramework\Http\Request::getOverwriteHost public && self::$server->getConfig()->getSystemValue('overwritehost') === '' - && !$trustedDomainHelper->isTrustedDomain($host) + && !\OC::$server->getTrustedDomainHelper()->isTrustedDomain($host) ) { header('HTTP/1.1 400 Bad Request'); header('Status: 400 Bad Request'); |