Commit c401ba31 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

[SECURITY] Bug 325079: The login form on the Bugzilla home page may redirect…

[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 <LpSolit@gmail.com> r=myk a=justdave
parent c738859a
...@@ -21,7 +21,19 @@ ...@@ -21,7 +21,19 @@
[% PROCESS global/variables.none.tmpl %] [% PROCESS global/variables.none.tmpl %]
<form name="login" action="[% cgi.script_name FILTER html %]" method="POST"> [%# 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 %]
<form name="login" action="[% script_name FILTER html %]" method="POST">
<table> <table>
<tr> <tr>
<td align="right"><b>Login:</b></td> <td align="right"><b>Login:</b></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment