From c3de43ee18240e8364fae0e9caeeda8cdff8f986 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 12 Aug 2013 11:54:59 -0400 Subject: Bug 894878 - CSV output template for request queues has gone away r=glob --- report.cgi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'report.cgi') 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. -- cgit v1.2.3-24-g4f1b