Ticket #41: rtwi_filename_truncation_bug.patch.txt

File rtwi_filename_truncation_bug.patch.txt, 537 bytes (added by shadoxx, 15 years ago)

rTWi Filename Truncation on Download Patch

Line 
1--- index.php 2008-05-18 18:12:32.000000000 -0400
2+++ index.php 2009-06-04 21:17:50.000000000 -0400
3@@ -1095,7 +1095,7 @@
4 @header( "Content-Description: File Transfer" );
5 @header( "Content-Type: application/force-download" );
6 @header( "Content-Length: {$filesize}" );
7- @header( "Content-Disposition: attachment; filename={$response["f_path"]}" );
8+ @header( "Content-Disposition: attachment; filename=\"{$response["f_path"]}\"" );
9
10 // sending the file
11 readfile( $path );