From 2cc608ea830f890b4d2191398166c7d1da82b568 Mon Sep 17 00:00:00 2001 From: lpsolit%gmail.com <> Date: Feb 21 2006 08:24:51 +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 --- diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl index 85802a7..a6e3b6d 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 %] + +
Login: