summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-01-10 05:38:57 +0100
committerlpsolit%gmail.com <>2006-01-10 05:38:57 +0100
commit80d9d70bb0340551f1a268bf60ecf3a46a5f7d92 (patch)
tree24b9614d59acabc8340f3864f45a7b9f2389f662 /Bugzilla/Attachment.pm
parent645e95abf828c530a1638934315c96e72768e8d1 (diff)
downloadbugzilla-80d9d70bb0340551f1a268bf60ecf3a46a5f7d92.tar.gz
bugzilla-80d9d70bb0340551f1a268bf60ecf3a46a5f7d92.tar.xz
Bug 322712: Cannot export local attachments (attachments are truncated) - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
Diffstat (limited to 'Bugzilla/Attachment.pm')
-rw-r--r--Bugzilla/Attachment.pm1
1 files changed, 1 insertions, 0 deletions
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} = <AH>;
close(AH);