From 5a1d041473337877d419e6c1681972ebcf078a11 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 6 Mar 2009 19:58:55 +0000 Subject: Bug 481910: Login forms point to http:// instead of https:// when ssl='authenticated sessions' (regression) - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/account/auth/login-small.html.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'template/en/default/account') 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 %] +