[freeside-commits] freeside/httemplate/search/elements search-csv.html, 1.1.2.1, 1.1.2.2
Mark Wells
mark at wavetail.420.am
Mon Jan 18 19:25:24 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail.420.am:/tmp/cvs-serv28036/httemplate/search/elements
Modified Files:
Tag: FREESIDE_1_9_BRANCH
search-csv.html
Log Message:
Fix mime type for CSV files, RT#1526
Index: search-csv.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/search-csv.html,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- search-csv.html 1 Nov 2009 23:03:10 -0000 1.1.2.1
+++ search-csv.html 19 Jan 2010 03:25:22 -0000 1.1.2.2
@@ -39,7 +39,10 @@
my %opt = %{ $args{'opt'} };
#http_header('Content-Type' => 'text/comma-separated-values' ); #IE chokes
-http_header('Content-Type' => 'text/plain' );
+#http_header('Content-Type' => 'text/plain' );
+http_header('Content-Type' => 'text/csv' ); # So saith RFC 4180
+http_header('Content-Disposition' =>
+ 'attachment;filename="'.($opt{'name'} || PL($opt{'name_singular'}) ).'.csv"');
my $quote_char = '"';
$quote_char = $opt{csv_quote} if exists($opt{csv_quote});
More information about the freeside-commits
mailing list