summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xduplicates.cgi1
-rwxr-xr-xshow_bug.cgi1
2 files changed, 2 insertions, 0 deletions
diff --git a/duplicates.cgi b/duplicates.cgi
index a45da6bb2..c9c692ca3 100755
--- a/duplicates.cgi
+++ b/duplicates.cgi
@@ -142,6 +142,7 @@ foreach (@sortedcount)
SendSQL("SELECT component, bug_severity, op_sys, target_milestone, short_desc FROM " .
"bugs WHERE bug_id = $id");
my ($component, $severity, $op_sys, $milestone, $summary) = FetchSQLData();
+ $summary = html_quote($summary);
print "<tr>";
print '<td><center><A HREF="show_bug.cgi?id=' . $id . '">';
print $id . "</A></center></td>";
diff --git a/show_bug.cgi b/show_bug.cgi
index 12a6755c7..1dd1f8820 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -50,6 +50,7 @@ GetVersionTable();
SendSQL("select short_desc from bugs where bug_id = $::FORM{'id'}");
my $summary = FetchOneColumn();
if( $summary ) {
+ $summary = html_quote($summary);
PutHeader("Bug $::FORM{'id'} - $summary", "Bugzilla Bug $::FORM{'id'}", $summary );
}else {
PutHeader("Bugzilla bug $::FORM{'id'}", "Bugzilla Bug", $::FORM{'id'});