Fix #2221 - Catch OpenSSL exceptions when loading remote avatars/headers/attachments Don't strip "rel" attribute from <a> tags when sanitizing (microformats)
This commit is contained in:
parent
60ecfb87ae
commit
58bcd50f7f
5 changed files with 6 additions and 4 deletions
|
@ -223,7 +223,7 @@ class ProcessFeedService < BaseService
|
|||
begin
|
||||
media.file_remote_url = link['href']
|
||||
media.save
|
||||
rescue OpenURI::HTTPError, Paperclip::Errors::NotIdentifiedByImageMagickError
|
||||
rescue OpenURI::HTTPError, OpenSSL::SSL::SSLError, Paperclip::Errors::NotIdentifiedByImageMagickError
|
||||
next
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue