remove trailing junk from XLSX files, #20337
[freeside.git] / httemplate / search / elements / search-xls.html
index 94d88b0..26a51c4 100644 (file)
@@ -1,4 +1,3 @@
-<% $data %>
 <%init>
 
 my %args = @_;
@@ -148,5 +147,6 @@ if ( $opt{'footer'} ) {
 $workbook->close();# or die "Error creating .xls file: $!";
 
 http_header('Content-Length' => length($data) );
+$m->print($data);
 
 </%init>