]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 481910: Login forms point to http:// instead of https:// when ssl='authenticated...
authorlpsolit%gmail.com <>
Fri, 6 Mar 2009 19:58:55 +0000 (19:58 +0000)
committerlpsolit%gmail.com <>
Fri, 6 Mar 2009 19:58:55 +0000 (19:58 +0000)
template/en/default/account/auth/login-small.html.tmpl

index 92901631feea6eab2da883528318822faccd756d..19dbf8db9b0da2c9db67f36dc13cdb2be13df864 100644 (file)
  [% 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 %]"