diff options
author | lpsolit%gmail.com <> | 2009-03-06 20:58:55 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-03-06 20:58:55 +0100 |
commit | 5a1d041473337877d419e6c1681972ebcf078a11 (patch) | |
tree | 4d984e60c288330723c1e9341934f2ee68ad83a3 /template/en/default | |
parent | c126dc00918547207e8bb99a9947c2ad96e93cd8 (diff) | |
download | bugzilla-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/en/default')
-rw-r--r-- | template/en/default/account/auth/login-small.html.tmpl | 8 |
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 %]" |