]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix error message on untrusted domain error page 5826/head
authorMorris Jobke <hey@morrisjobke.de>
Fri, 21 Jul 2017 09:46:35 +0000 (11:46 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 21 Jul 2017 14:16:48 +0000 (16:16 +0200)
Fixes #5347

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/Server.php

index 5ae9cd9fdc6c288650ce2dd060f31a3592c7b244..28efb5c2b71e74fe3830052eace4e8cf15e8b2af 100644 (file)
@@ -862,7 +862,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'),