mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:08:23 +08:00
always strip s/mime signatures in incoming emails
This commit is contained in:
@ -429,6 +429,9 @@ module Email
|
||||
def create_post_with_attachments(options={})
|
||||
# deal with attachments
|
||||
@mail.attachments.each do |attachment|
|
||||
# always strip S/MIME signatures
|
||||
next if attachment.content_type == "application/pkcs7-mime".freeze
|
||||
|
||||
tmp = Tempfile.new("discourse-email-attachment")
|
||||
begin
|
||||
# read attachment
|
||||
|
Reference in New Issue
Block a user