Bug 65252 - Debug rss-comments
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@826 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
4d62efc097
commit
bff1b30f61
|
@ -360,7 +360,7 @@ sub send_header {
|
|||
my $class = shift;
|
||||
return undef if $class->usage_mode == USAGE_MODE_EMAIL;
|
||||
my $cgi = $class->cgi;
|
||||
$cgi->{_header_sent} || $cgi->send_header(@_);
|
||||
$cgi->send_header(@_);
|
||||
}
|
||||
|
||||
sub input_params {
|
||||
|
|
|
@ -28,12 +28,13 @@ my $dbh = Bugzilla->dbh;
|
|||
$vars->{selfurl} = $cgi->canonicalise_query();
|
||||
$vars->{buginfo} = $cgi->param('buginfo');
|
||||
|
||||
our %FORMATS = qw(rss 1 showteamwork 1);
|
||||
our %FORMATS = map { $_ => 1 } qw(rss showteamwork);
|
||||
|
||||
my $who = $cgi->param('who');
|
||||
|
||||
my $limit;
|
||||
my $format = $cgi->param('ctype');
|
||||
trick_taint($format);
|
||||
$FORMATS{$format} or $format = 'rss';
|
||||
|
||||
$limit = int($cgi->param('limit')) if $format eq 'showteamwork';
|
||||
|
@ -193,7 +194,7 @@ foreach $k (@$gkeys)
|
|||
# Output feed title
|
||||
$vars->{title} = $title;
|
||||
|
||||
$cgi->send_header(-type => 'text/xml');
|
||||
Bugzilla->cgi->send_header(-type => 'text/xml');
|
||||
$template->process('list/comments.'.$format.'.tmpl', $vars)
|
||||
|| ThrowTemplateError($template->error());
|
||||
|
||||
|
|
Loading…
Reference in New Issue