diff options
author | Joachim Bauch <bauch@struktur.de> | 2016-02-15 17:02:14 +0100 |
---|---|---|
committer | Joachim Bauch <bauch@struktur.de> | 2016-02-15 17:02:14 +0100 |
commit | 0173063923b872a875f3b1fe8b1d75446bebc180 (patch) | |
tree | 716551b98782e9ab90116b5ac68e45f084e5226e /lib | |
parent | 46b39c3465e2db9ba26b23d8d0dfca6cc670aaea (diff) | |
download | nextcloud-server-0173063923b872a875f3b1fe8b1d75446bebc180.tar.gz nextcloud-server-0173063923b872a875f3b1fe8b1d75446bebc180.zip |
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).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index fc4a99287d0..df4e91dda9f 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(); |