Merge pull request #5821 from nextcloud/fix-theming-on-untrusted-domain

Fix error message on untrusted domain error page
This commit is contained in:
Lukas Reschke 2017-07-21 14:50:31 +02:00 committed by GitHub
commit 4c637a428e
1 changed files with 1 additions and 1 deletions

View File

@ -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'),