From: lpsolit%gmail.com <> Date: Tue, 10 Jan 2006 04:38:57 +0000 (+0000) Subject: Bug 322712: Cannot export local attachments (attachments are truncated) - Patch by... X-Git-Tag: bugzilla-2.22rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d9d70bb0340551f1a268bf60ecf3a46a5f7d92;p=thirdparty%2Fbugzilla.git Bug 322712: Cannot export local attachments (attachments are truncated) - Patch by Frédéric Buclin r/a=myk --- diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 76067bbbc0..8b02039243 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -304,6 +304,7 @@ sub data { # in a local file, so retrieve it from there. if (length($self->{data}) == 0) { if (open(AH, $self->_get_local_filename())) { + local $/; binmode AH; $self->{data} = ; close(AH);