Patch from Jake <jake@acutex.net> for bugs 22041 and 25693 which had the same problem. HTML meta characters in the summary were not being quoted before being printed to html.

This commit is contained in:
endico%mozilla.org 2001-03-09 01:49:42 +00:00
Родитель 7510f1eaa3
Коммит e16fdcea2a
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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>";

Просмотреть файл

@ -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'});