diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-06-04 13:58:23 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-06-04 13:58:23 +0100 |
commit | 0ad3ef57d766dd6a8c37a172f9bc3b98114409c8 (patch) | |
tree | 2d1152dd6b53b059b7205f162a75181067877b06 /app | |
parent | 1e8dc7d5cbb382f6cb94716fd1ff0c990d219792 (diff) |
Correctly set uuencoded attachment file size2508-hotfix-bad-uudecode
Diffstat (limited to 'app')
-rw-r--r-- | app/models/incoming_message.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 2e697140c..3606c39c2 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -521,8 +521,7 @@ class IncomingMessage < ActiveRecord::Base attachment = foi_attachments.find_or_create_by_hexdigest(hexdigest) attachment.update_attributes(:filename => filename, :content_type => content_type, - :body => content, - :display_size => "0K") + :body => content) attachment.save! attachments << attachment end |