[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4880] branches/1.3



Revision: 4880
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4880&view=rev
Author:   einhverfr
Date:     2012-06-10 09:23:43 +0000 (Sun, 10 Jun 2012)
Log Message:
-----------
Correcting corruption of some attachments on download because stdout was improperly set to UTF8 instead of bytes

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/scripts/file.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-06-10 03:41:32 UTC (rev 4879)
+++ branches/1.3/Changelog	2012-06-10 09:23:43 UTC (rev 4880)
@@ -14,6 +14,7 @@
 * Fixed "Post as Shown" button not showing properly on AR/AP drafts (Chris T)
 * Added fs_cssdir config option for easier packaging (Chris T, h/t Robert C)
 * Fixed discarded input/bad label on 1.2 upgrade screen (Chris T, h/t Robert C)
+* Fixed encoding of attachment retrieval (Chris T h/t Erik H)
 
 Changelog for 1.3.18
 * Fixed missing template for CSV pricelists (Chris T)

Modified: branches/1.3/scripts/file.pl
===================================================================
--- branches/1.3/scripts/file.pl	2012-06-10 03:41:32 UTC (rev 4879)
+++ branches/1.3/scripts/file.pl	2012-06-10 09:23:43 UTC (rev 4880)
@@ -48,6 +48,7 @@
         print $cgi->redirect($file->content);
         return 0;
     }
+    binmode (STDOUT, ':bytes');
 
     print $cgi->header(
           -type       => $file->get_mime_type,

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.