remove trailing junk from XLSX files, #20337
[freeside.git] / httemplate / search / report_tax-xls.cgi
index f19f85a..bb843a7 100755 (executable)
@@ -1,4 +1,3 @@
-<% $data %>
 <%init>
 my $htmldoc = include('report_tax.cgi');
 
@@ -155,4 +154,6 @@ for my $x (0..scalar(@widths)-1) {
 
 $workbook->close;
 
+http_header('Content-Length' => length($data));
+$m->print($data);
 </%init>