[Tickets #4444] NEW: Download text attachments have the line breaks broken
bugs@bugs.horde.org
bugs at bugs.horde.org
Thu Sep 21 09:38:23 PDT 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=4444
-----------------------------------------------------------------------
Ticket | 4444
Created By | scalero at ddol.es
Summary | Download text attachments have the line breaks broken
Queue | IMP
Version | FRAMEWORK_3
Type | Bug
State | Unconfirmed
Priority | 1. Low
Owners |
-----------------------------------------------------------------------
scalero at ddol.es (2006-09-21 09:38) wrote:
If I receive a text file, created with notepad, and I click the link
'Download ...' and save it to disk. When I double click the text file and
is opened again with notepad the line breaks are broken. I think the
original <CR><LF> is now <LF> only.
The follow change in the file 'horde/imp/view.php' solves this:
case 'download_attach':
case 'download_render':
switch ($actionID) {
case 'download_attach':
/* Make sure we get the entire contents of the part. */
$mime = $contents->getDecodedMIMEPart($id, true);
-- $body = $mime->getContents();
++ $body = $mime->getCanonicalContents();
$type = $mime->getType(true);
break;
Can this change cause some problem?
Greetings.
Sebastián Calero.
More information about the bugs
mailing list