diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-21 11:46:35 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-07-21 11:46:37 +0200 |
commit | 1a4a68dbc6875b18a2c2ca45fd27990cc33b1d5e (patch) | |
tree | 5f53676dc0b9da9ddbcf04f05d6ac70177864a33 /lib/private/Server.php | |
parent | 1c1ff82c066bfd9286b316cff79c509123a60801 (diff) | |
download | nextcloud-server-1a4a68dbc6875b18a2c2ca45fd27990cc33b1d5e.tar.gz nextcloud-server-1a4a68dbc6875b18a2c2ca45fd27990cc33b1d5e.zip |
Fix error message on untrusted domain error page
Fixes #5347
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index be432c0cf28..c89931a2d1c 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -866,7 +866,7 @@ class Server extends ServerContainer implements IServerContainer { $classExists = false; } - if ($classExists && $c->getConfig()->getSystemValue('installed', false) && $c->getAppManager()->isInstalled('theming')) { + if ($classExists && $c->getConfig()->getSystemValue('installed', false) && $c->getAppManager()->isInstalled('theming') && $c->getTrustedDomainHelper()->isTrustedDomain($c->getRequest()->getInsecureServerHost())) { return new ThemingDefaults( $c->getConfig(), $c->getL10N('theming'), |