Skip to content

Commit 55eb604

Browse files
summersabskjnldsv
authored andcommitted
Refactor OC\Server::getTrustedDomainHelper
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
1 parent a88c1bd commit 55eb604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ public function __construct($webRoot, \OC\Config $config) {
11741174
$classExists = false;
11751175
}
11761176

1177-
if ($classExists && $c->get(\OCP\IConfig::class)->getSystemValueBool('installed', false) && $c->get(IAppManager::class)->isInstalled('theming') && $c->getTrustedDomainHelper()->isTrustedDomain($c->getRequest()->getInsecureServerHost())) {
1177+
if ($classExists && $c->get(\OCP\IConfig::class)->getSystemValueBool('installed', false) && $c->get(IAppManager::class)->isInstalled('theming') && $c->get(TrustedDomainHelper::class)->isTrustedDomain($c->getRequest()->getInsecureServerHost())) {
11781178
$imageManager = new ImageManager(
11791179
$c->get(\OCP\IConfig::class),
11801180
$c->getAppDataDir('theming'),

0 commit comments

Comments
 (0)