]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 322712: Cannot export local attachments (attachments are truncated) - Patch by...
authorlpsolit%gmail.com <>
Tue, 10 Jan 2006 04:38:57 +0000 (04:38 +0000)
committerlpsolit%gmail.com <>
Tue, 10 Jan 2006 04:38:57 +0000 (04:38 +0000)
Bugzilla/Attachment.pm

index 76067bbbc00c7571cc1dcfce6a3664e9565ff7f6..8b020392438c35c70baa2d29560653bbb0f9d4cf 100644 (file)
@@ -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} = <AH>;
             close(AH);