From c401ba318f9dcd511b8aad742f09680b79cec135 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 21 Feb 2006 08:19:25 +0000 Subject: [SECURITY] Bug 325079: The login form on the Bugzilla home page may redirect your login and password to another site - Patch by Frédéric Buclin r=myk a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/account/auth/login-small.html.tmpl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'template') diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl index 85802a771..a6e3b6ddb 100644 --- a/template/en/default/account/auth/login-small.html.tmpl +++ b/template/en/default/account/auth/login-small.html.tmpl @@ -21,7 +21,19 @@ [% PROCESS global/variables.none.tmpl %] -
+[%# Use the current script name. If an empty name is retuned, + # then we are accessing the home page. %] + +[% script_name = cgi.url(Relative => 1) %] + +[%# If SSL is in use, use 'sslbase', else use 'urlbase'. %] +[% IF Param("sslbase") != "" && Param("ssl") != "never" %] + [% script_name = Param("sslbase") _ script_name %] +[% ELSE %] + [% script_name = Param("urlbase") _ script_name %] +[% END %] + + -- cgit v1.2.3-24-g4f1b
Login: