diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-12-02 10:48:41 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-12-07 09:53:06 +0100 |
commit | d05f131929b8812cac1c1e08bf8098d6df03b191 (patch) | |
tree | 130b90dd57776b587efccb767413e8fec21a7cc3 /lib/base.php | |
parent | 2959487f71c8226036ac3614bce27e3bbe60418a (diff) | |
download | nextcloud-server-d05f131929b8812cac1c1e08bf8098d6df03b191.tar.gz nextcloud-server-d05f131929b8812cac1c1e08bf8098d6df03b191.zip |
Move overwritehost check to isTrustedDomain
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php index 436b2a2aeea..b0991307dda 100644 --- a/lib/base.php +++ b/lib/base.php @@ -760,9 +760,6 @@ class OC { * FIXME: Should not be in here at all :see_no_evil: */ if (!OC::$CLI - // overwritehost is always trusted, workaround to not have to make - // \OC\AppFramework\Http\Request::getOverwriteHost public - && self::$server->getConfig()->getSystemValue('overwritehost') === '' && !\OC::$server->getTrustedDomainHelper()->isTrustedDomain($host) && self::$server->getConfig()->getSystemValue('installed', false) ) { |