diff options
| author | Mark Wells <mark@freeside.biz> | 2012-11-27 21:43:37 -0800 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2012-11-27 21:43:37 -0800 |
| commit | 226fffec6fd0154ea8798b58321d4d119341879f (patch) | |
| tree | f1cbbf032f75d0f566fa06f514fe0194a5649c28 /httemplate/search/elements | |
| parent | cb66e7cac35892a482cf07c7e05db5ff6296c395 (diff) | |
remove trailing junk from XLSX files, #20337
Diffstat (limited to 'httemplate/search/elements')
| -rw-r--r-- | httemplate/search/elements/search-xls.html | 2 | ||||
| -rw-r--r-- | httemplate/search/elements/search.html | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/search/elements/search-xls.html b/httemplate/search/elements/search-xls.html index 94d88b096..26a51c4c7 100644 --- a/httemplate/search/elements/search-xls.html +++ b/httemplate/search/elements/search-xls.html @@ -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> diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html index eca68a2f8..5a16a22fe 100644 --- a/httemplate/search/elements/search.html +++ b/httemplate/search/elements/search.html @@ -176,7 +176,9 @@ Example: % % } elsif ( $type =~ /\.xls$/ ) { % -<% include('search-xls.html', header=>$header, rows=>$rows, opt=>\%opt ) %> +<& 'search-xls.html', header=>$header, rows=>$rows, opt=>\%opt &>\ +% # prevent the caller from polluting our output stream +% $m->abort; % % } elsif ( $type eq 'xml' ) { % |
