Merge pull request #5821 from nextcloud/fix-theming-on-untrusted-domain
Fix error message on untrusted domain error page
This commit is contained in:
commit
4c637a428e
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue