From b5cbca2fd02b1cbf2b50a40fa6dad42da6b43d1e Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Wed, 27 Mar 2002 16:13:33 +0000 Subject: Bug 133425 - FILTERs and other fixes in show_bug.html.tmpl. Patch by gerv, r=justdave, bbaetz. --- CGI.pl | 1 + template/default/show/show_bug.html.tmpl | 62 +++++++++++++++++--------------- 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CGI.pl b/CGI.pl index e100c69f3..2b8f5d048 100644 --- a/CGI.pl +++ b/CGI.pl @@ -361,6 +361,7 @@ sub html_quote { $var =~ s/\&/\&/g; $var =~ s//\>/g; + $var =~ s/"/\"/g; return $var; } diff --git a/template/default/show/show_bug.html.tmpl b/template/default/show/show_bug.html.tmpl index 3e2918b52..fa501a4d1 100644 --- a/template/default/show/show_bug.html.tmpl +++ b/template/default/show/show_bug.html.tmpl @@ -24,7 +24,7 @@ h1 = "Bugzilla Bug $bug.bug_id" h2 = bug.short_desc extra = navigation_links() - %] + %] [% END %] [% PROCESS show/navigate.html.tmpl %] @@ -45,7 +45,7 @@ Bug#: - + [% bug.bug_id %] @@ -60,7 +60,7 @@ Reporter: - [% bug.reporter %] + [% bug.reporter FILTER html %] @@ -88,7 +88,7 @@ - + Component: @@ -96,7 +96,8 @@ @@ -133,7 +134,7 @@ Status: - [% bug.bug_status %] + [% bug.bug_status FILTER html %]   @@ -148,7 +149,7 @@ Resolution: - [% bug.resolution %] + [% bug.resolution FILTER html %]   @@ -164,7 +165,7 @@ Assigned To: - [% bug.assigned_to %] + [% bug.assigned_to FILTER html %]   [% IF Param("usetargetmilestone") && bug.target_milestone %] @@ -187,7 +188,8 @@ QA Contact: - + [% END %] @@ -195,7 +197,7 @@ - [% IF bug.url %] + [% IF bug.bug_file_loc %] URL: [% ELSE %] URL: @@ -203,7 +205,8 @@ - + @@ -212,7 +215,8 @@ Summary: - + @@ -222,21 +226,21 @@ Status Whiteboard: - + [% END %] [% IF use_keywords %] - + - Keywords: + Keywords: - + [% END %] @@ -331,7 +335,7 @@ (The assignee [% IF (Param('useqacontact')) %] - and qa contact + and QA contact [% END %] can always see a bug, and this section does not take effect unless the bug is restricted to at least one group.) @@ -351,7 +355,8 @@
- Leave as [% bug.bug_status %] [% bug.resolution %] + Leave as [% bug.bug_status FILTER html %]  + [% bug.resolution FILTER html %]
[% knum = 1 %] @@ -383,11 +388,11 @@ [% END %] - Resolve bug, changing resolution to + Resolve bug, changing resolution to
@@ -404,11 +409,11 @@ Reassign bug to + value="[% bug.assigned_to_email FILTER html %]">
[% IF bug.isunconfirmed %]      @@ -453,9 +458,9 @@

- View Bug Activity + View Bug Activity   |   - Format For Printing + Format For Printing @@ -520,8 +525,9 @@ -- cgit v1.2.3-24-g4f1b