зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7510f1eaa3
Коммит
e16fdcea2a
|
@ -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'});
|
||||
|
|
Загрузка…
Ссылка в новой задаче