diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-08-12 17:54:59 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-08-12 17:54:59 +0200 |
commit | c3de43ee18240e8364fae0e9caeeda8cdff8f986 (patch) | |
tree | a479a02c33e75b422afd4395a004c6c2b0644cb0 /report.cgi | |
parent | 261bb90c5cf98eb824f6897cdc0c6c4191618115 (diff) | |
download | bugzilla-c3de43ee18240e8364fae0e9caeeda8cdff8f986.tar.gz bugzilla-c3de43ee18240e8364fae0e9caeeda8cdff8f986.tar.xz |
Bug 894878 - CSV output template for request queues has gone away
r=glob
Diffstat (limited to 'report.cgi')
-rwxr-xr-x | report.cgi | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/report.cgi b/report.cgi index 4e8689527..7a6093c8c 100755 --- a/report.cgi +++ b/report.cgi @@ -280,11 +280,8 @@ my $format = $template->get_format("reports/report", $formatparam, # set debug=1 to always get an HTML content-type, and view the error. $format->{'ctype'} = "text/html" if $cgi->param('debug'); -my @time = localtime(time()); -my $date = sprintf "%04d-%02d-%02d", 1900+$time[5],$time[4]+1,$time[3]; -my $filename = "report-$date.$format->{extension}"; -print $cgi->header(-type => $format->{'ctype'}, - -content_disposition => "inline; filename=$filename"); +$cgi->set_dated_content_disp("inline", "report", $format->{extension}); +print $cgi->header($format->{'ctype'}); # Problems with this CGI are often due to malformed data. Setting debug=1 # prints out both data structures. |