From: Victor B. <vb...@us...> - 2007-06-23 03:49:02
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10474 Modified Files: csv_export.php Log Message: Fixed #8091: csv_export doesn't work when project name contains accentuated characters. Index: csv_export.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/csv_export.php,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- csv_export.php 8 Jun 2005 22:09:13 -0000 1.25 +++ csv_export.php 23 Jun 2007 03:48:55 -0000 1.26 @@ -43,11 +43,11 @@ # Make sure that IE can download the attachments under https. header( 'Pragma: public' ); - header( 'Content-Type: text/plain; name=' . $t_filename ); + header( 'Content-Type: text/plain; name=' . urlencode( $t_filename ) ); header( 'Content-Transfer-Encoding: BASE64;' ); # Added Quotes (") around file name. - header( 'Content-Disposition: attachment; filename="' . $t_filename .'"'); + header( 'Content-Disposition: attachment; filename="' . urlencode( $t_filename ) . '"' ); # Get columns to be exported $t_columns = csv_get_columns(); |