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:
parent
46b39c3465
commit
0173063923
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue