##// END OF EJS Templates
fix received mail text attachment does not keep original encoding on Ruby >= 2.1 (#21742)...
Toshi MARUYAMA -
r14802:5414d8605088
parent child
Show More
@@ -290,7 +290,7 class MailHandler < ActionMailer::Base
290 email.attachments.each do |attachment|
290 email.attachments.each do |attachment|
291 next unless accept_attachment?(attachment)
291 next unless accept_attachment?(attachment)
292 obj.attachments << Attachment.create(:container => obj,
292 obj.attachments << Attachment.create(:container => obj,
293 :file => attachment.decoded,
293 :file => attachment.body.decoded,
294 :filename => attachment.filename,
294 :filename => attachment.filename,
295 :author => user,
295 :author => user,
296 :content_type => attachment.mime_type)
296 :content_type => attachment.mime_type)
General Comments 0
You need to be logged in to leave comments. Login now