Skip to content

Commit

Permalink
Merge pull request #5821 from nextcloud/fix-theming-on-untrusted-domain
Browse files Browse the repository at this point in the history
Fix error message on untrusted domain error page
  • Loading branch information
LukasReschke authored Jul 21, 2017
2 parents a33b6cd + 1a4a68d commit 4c637a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ public function __construct($webRoot, \OC\Config $config) {
$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'),
Expand Down

0 comments on commit 4c637a4

Please sign in to comment.