Skip to content

Commit 0b7cd97

Browse files
author
Dylan Hardison
committed
Bug 1254542 - Reflected XSS in comment-remo-form-payment.txt page
1 parent 6ec9ecf commit 0b7cd97

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Bugzilla/Constants.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ use constant contenttypes =>
508508
"csv" => "text/csv" ,
509509
"png" => "image/png" ,
510510
"ics" => "text/calendar" ,
511+
"txt" => "text/plain",
511512
};
512513

513514
# Usage modes. Default USAGE_MODE_BROWSER. Use with Bugzilla->usage_mode.

Bugzilla/Template.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ sub get_format {
144144
'template' => $template,
145145
'format' => $format,
146146
'extension' => $ctype,
147-
'ctype' => Bugzilla::Constants::contenttypes->{$ctype}
147+
'ctype' => Bugzilla::Constants::contenttypes->{$ctype} // 'application/octet-stream',
148148
};
149149
}
150150

0 commit comments

Comments
 (0)