]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch from Jake <jake@acutex.net> for bugs 22041 and 25693 which had the same problem...
authorendico%mozilla.org <>
Fri, 9 Mar 2001 09:49:41 +0000 (09:49 +0000)
committerendico%mozilla.org <>
Fri, 9 Mar 2001 09:49:41 +0000 (09:49 +0000)
duplicates.cgi
show_bug.cgi

index a45da6bb2a2a3fffd9afcd03ced2cdafef59bd9f..c9c692ca3c0d5d20349e583bbabbcf948bf11619 100755 (executable)
@@ -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>";
index 12a6755c72401e09ffef7ad6ba09e581a6db49ca..1dd1f882015d4454cbcf39c84623b0108e38e38a 100755 (executable)
@@ -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'});