From 1a4a68dbc6875b18a2c2ca45fd27990cc33b1d5e Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 21 Jul 2017 11:46:35 +0200 Subject: [PATCH] Fix error message on untrusted domain error page Fixes #5347 Signed-off-by: Morris Jobke --- lib/private/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Server.php b/lib/private/Server.php index be432c0cf2..c89931a2d1 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'),