Commit b5cbca2f authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 133425 - FILTERs and other fixes in show_bug.html.tmpl. Patch by gerv, r=justdave, bbaetz.

parent 1b9dcfcc
...@@ -361,6 +361,7 @@ sub html_quote { ...@@ -361,6 +361,7 @@ sub html_quote {
$var =~ s/\&/\&/g; $var =~ s/\&/\&/g;
$var =~ s/</\&lt;/g; $var =~ s/</\&lt;/g;
$var =~ s/>/\&gt;/g; $var =~ s/>/\&gt;/g;
$var =~ s/"/\&quot;/g;
return $var; return $var;
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
h1 = "Bugzilla Bug $bug.bug_id" h1 = "Bugzilla Bug $bug.bug_id"
h2 = bug.short_desc h2 = bug.short_desc
extra = navigation_links() extra = navigation_links()
%] %]
[% END %] [% END %]
[% PROCESS show/navigate.html.tmpl %] [% PROCESS show/navigate.html.tmpl %]
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<b>Bug#:</b> <b>Bug#:</b>
</td> </td>
<td> <td>
<a href="[% urlbase %]show_bug.cgi?id=[% bug.bug_id %]"> <a href="[% Param('urlbase') %]show_bug.cgi?id=[% bug.bug_id %]">
[% bug.bug_id %]</a> [% bug.bug_id %]</a>
</td> </td>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<b>Reporter:</b> <b>Reporter:</b>
</td> </td>
<td> <td>
[% bug.reporter %] [% bug.reporter FILTER html %]
</td> </td>
</tr> </tr>
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<tr> <tr>
<td align="right"> <td align="right">
<b> <b>
<a href="describecomponents.cgi?product=[% bug.product %]"> <a href="describecomponents.cgi?product=[% bug.product FILTER uri %]">
Component</a>: Component</a>:
</b> </b>
</td> </td>
...@@ -96,7 +96,8 @@ ...@@ -96,7 +96,8 @@
<select name="component"> <select name="component">
[% FOREACH x = component_ %] [% FOREACH x = component_ %]
<option value="[% x %]" <option value="[% x %]"
[% " selected" IF x == bug.component %]>[% x %]</option> [% " selected" IF x == bug.component %]>[% x FILTER html %]
</option>
[% END %] [% END %]
</select> </select>
</td> </td>
...@@ -133,7 +134,7 @@ ...@@ -133,7 +134,7 @@
<a href="bug_status.html">Status</a>: <a href="bug_status.html">Status</a>:
</b> </b>
</td> </td>
<td>[% bug.bug_status %]</td> <td>[% bug.bug_status FILTER html %]</td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td align="right"> <td align="right">
...@@ -148,7 +149,7 @@ ...@@ -148,7 +149,7 @@
<a href="bug_status.html">Resolution</a>: <a href="bug_status.html">Resolution</a>:
</b> </b>
</td> </td>
<td>[% bug.resolution %]</td> <td>[% bug.resolution FILTER html %]</td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td align="right"> <td align="right">
...@@ -164,7 +165,7 @@ ...@@ -164,7 +165,7 @@
<a href="bug_status.html#assigned_to">Assigned&nbsp;To</a>: <a href="bug_status.html#assigned_to">Assigned&nbsp;To</a>:
</b> </b>
</td> </td>
<td>[% bug.assigned_to %]</td> <td>[% bug.assigned_to FILTER html %]</td>
<td>&nbsp;</td> <td>&nbsp;</td>
[% IF Param("usetargetmilestone") && bug.target_milestone %] [% IF Param("usetargetmilestone") && bug.target_milestone %]
...@@ -187,7 +188,8 @@ ...@@ -187,7 +188,8 @@
<b>QA Contact:</b> <b>QA Contact:</b>
</td> </td>
<td colspan="7"> <td colspan="7">
<input name="qa_contact" value="[% bug.qa_contact %]" size="60"> <input name="qa_contact"
value="[% bug.qa_contact FILTER html %]" size="60">
</td> </td>
</tr> </tr>
[% END %] [% END %]
...@@ -195,7 +197,7 @@ ...@@ -195,7 +197,7 @@
<tr> <tr>
<td align="right"> <td align="right">
<b> <b>
[% IF bug.url %] [% IF bug.bug_file_loc %]
<a href="[% bug.bug_file_loc FILTER uri %]">URL:</a> <a href="[% bug.bug_file_loc FILTER uri %]">URL:</a>
[% ELSE %] [% ELSE %]
URL: URL:
...@@ -203,7 +205,8 @@ ...@@ -203,7 +205,8 @@
</b> </b>
</td> </td>
<td colspan="7"> <td colspan="7">
<input name="bug_file_loc" value="[% bug.bug_file_loc %]" size="60"> <input name="bug_file_loc"
value="[% bug.bug_file_loc FILTER html %]" size="60">
</td> </td>
</tr> </tr>
...@@ -212,7 +215,8 @@ ...@@ -212,7 +215,8 @@
<b>Summary:</b> <b>Summary:</b>
</td> </td>
<td colspan="7"> <td colspan="7">
<input name="short_desc" value="[% bug.short_desc %]" size="60"> <input name="short_desc"
value="[% bug.short_desc FILTER html %]" size="60">
</td> </td>
</tr> </tr>
...@@ -222,21 +226,21 @@ ...@@ -222,21 +226,21 @@
<b>Status Whiteboard:</b> <b>Status Whiteboard:</b>
</td> </td>
<td colspan="7"> <td colspan="7">
<input name="status_whiteboard" value="[% bug.status_whiteboard %]" <input name="status_whiteboard"
size="60"> value="[% bug.status_whiteboard FILTER html %]" size="60">
</td> </td>
</tr> </tr>
[% END %] [% END %]
[% IF use_keywords %] [% IF use_keywords %]
<tr> <tr>
<td ALIGN="right"> <td align="right">
<b> <b>
<A HREF="describekeywords.cgi">Keywords:</A> <a href="describekeywords.cgi">Keywords:</a>
</b> </b>
<td colspan="7"> <td colspan="7">
<input name="keywords" value="[% bug.keywords.join(', ') %]" <input name="keywords"
size="60"> value="[% bug.keywords.join(', ') FILTER html %]" size="60">
</td> </td>
</tr> </tr>
[% END %] [% END %]
...@@ -331,7 +335,7 @@ ...@@ -331,7 +335,7 @@
<small> <small>
(The assignee (The assignee
[% IF (Param('useqacontact')) %] [% IF (Param('useqacontact')) %]
and qa contact and QA contact
[% END %] [% END %]
can always see a bug, and this section does not take effect unless can always see a bug, and this section does not take effect unless
the bug is restricted to at least one group.) the bug is restricted to at least one group.)
...@@ -351,7 +355,8 @@ ...@@ -351,7 +355,8 @@
<br> <br>
<input type="radio" name="knob" value="none" checked> <input type="radio" name="knob" value="none" checked>
Leave as <b>[% bug.bug_status %]&nbsp;[% bug.resolution %]</b> Leave as <b>[% bug.bug_status FILTER html %]&nbsp;
[% bug.resolution FILTER html %]</b>
<br> <br>
[% knum = 1 %] [% knum = 1 %]
...@@ -383,11 +388,11 @@ ...@@ -383,11 +388,11 @@
[% END %] [% END %]
<input type="radio" name="knob" value="resolve"> <input type="radio" name="knob" value="resolve">
Resolve bug, changing <A HREF="bug_status.html">resolution</A> to Resolve bug, changing <a href="bug_status.html">resolution</a> to
<select name="resolution" <select name="resolution"
onchange="document.changeform.knob[[% knum %]].checked=true"> onchange="document.changeform.knob[[% knum %]].checked=true">
[% FOREACH r = resolution %] [% FOREACH r = resolution %]
<option value="[% r %]">[% r %]</option> <option value="[% r FILTER html %]">[% r FILTER html %]</option>
[% END %] [% END %]
</select> </select>
<br> <br>
...@@ -404,11 +409,11 @@ ...@@ -404,11 +409,11 @@
<input type="radio" name="knob" value="reassign"> <input type="radio" name="knob" value="reassign">
<a href="bug_status.html#assigned_to">Reassign</A> bug to <a href="bug_status.html#assigned_to">Reassign</A> bug to
<input name="assigned_to" size="32" <input name="assigned_to" size="32"
onchange="if ((this.value != '[% bug.assigned_to_email %]') && onchange="if ((this.value != '[% bug.assigned_to_email FILTER js %]') &&
(this.value != '')) { (this.value != '')) {
document.changeform.knob[[% knum %]].checked=true; document.changeform.knob[[% knum %]].checked=true;
}" }"
value="[% bug.assigned_to_email %]"> value="[% bug.assigned_to_email FILTER html %]">
<br> <br>
[% IF bug.isunconfirmed %] [% IF bug.isunconfirmed %]
&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="andconfirm"> &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="andconfirm">
...@@ -453,9 +458,9 @@ ...@@ -453,9 +458,9 @@
<p> <p>
<font size="+1"> <font size="+1">
<b> <b>
<A HREF="show_activity.cgi?id=[% bug.bug_id %]">View Bug Activity</A> <a href="show_activity.cgi?id=[% bug.bug_id %]">View Bug Activity</a>
&nbsp; | &nbsp; &nbsp; | &nbsp;
<A HREF="long_list.cgi?buglist=[% bug.bug_id %]">Format For Printing</A> <a href="long_list.cgi?buglist=[% bug.bug_id %]">Format For Printing</a>
</b> </b>
</font> </font>
...@@ -520,8 +525,9 @@ ...@@ -520,8 +525,9 @@
<td> <td>
<select name="[% selname %]"> <select name="[% selname %]">
[% FOREACH x = ${selname} %] [% FOREACH x = ${selname} %]
<option value="[% x %]" <option value="[% x FILTER html %]"
[% " selected" IF x == bug.${selname} %]>[% x %]</option> [% " selected" IF x == bug.${selname} %]>[% x FILTER html %]
</option>
[% END %] [% END %]
</select> </select>
</td> </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