summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-03-06 20:58:55 +0100
committerlpsolit%gmail.com <>2009-03-06 20:58:55 +0100
commit5a1d041473337877d419e6c1681972ebcf078a11 (patch)
tree4d984e60c288330723c1e9341934f2ee68ad83a3 /template
parentc126dc00918547207e8bb99a9947c2ad96e93cd8 (diff)
downloadbugzilla-5a1d041473337877d419e6c1681972ebcf078a11.tar.gz
bugzilla-5a1d041473337877d419e6c1681972ebcf078a11.tar.xz
Bug 481910: Login forms point to http:// instead of https:// when ssl='authenticated sessions' (regression) - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'template')
-rw-r--r--template/en/default/account/auth/login-small.html.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl
index 92901631f..19dbf8db9 100644
--- a/template/en/default/account/auth/login-small.html.tmpl
+++ b/template/en/default/account/auth/login-small.html.tmpl
@@ -28,7 +28,13 @@
[% target = "index.cgi" %]
[% END %]
-[% target = urlbase _ target %]
+[%# If SSL is in use, use 'sslbase', else use 'urlbase'. %]
+[% IF Param("sslbase") != "" && Param("ssl") != "never" %]
+ [% target = Param("sslbase") _ target %]
+[% ELSE %]
+ [% target = Param("urlbase") _ target %]
+[% END %]
+
<li>
<form action="[% target FILTER html %]" method="POST" class="mini_login"
id="mini_login[% qs_suffix FILTER html %]"