From 80d9d70bb0340551f1a268bf60ecf3a46a5f7d92 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 10 Jan 2006 04:38:57 +0000 Subject: Bug 322712: Cannot export local attachments (attachments are truncated) - Patch by Frédéric Buclin r/a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Attachment.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla') diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 76067bbbc..8b0203924 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); -- cgit v1.2.3-24-g4f1b