From 0173063923b872a875f3b1fe8b1d75446bebc180 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 15 Feb 2016 17:02:14 +0100 Subject: [PATCH] Pass checked host as "domain" variable to "untrustedDomain" template. Currently the "SERVER_NAME" is passed to the template, which in some cases doesn't match the host returned by "getInsecureServerHost" (or is empty). --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index fc4a99287d..df4e91dda9 100644 --- a/lib/base.php +++ b/lib/base.php @@ -692,7 +692,7 @@ class OC { ); $tmpl = new OCP\Template('core', 'untrustedDomain', 'guest'); - $tmpl->assign('domain', $request->server['SERVER_NAME']); + $tmpl->assign('domain', $host); $tmpl->printPage(); exit();