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).
This commit is contained in:
Joachim Bauch 2016-02-15 17:02:14 +01:00
parent 46b39c3465
commit 0173063923
1 changed files with 1 additions and 1 deletions

View File

@ -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();