FIX: don't 💥 when 'FastImage.size' has trouble with SSL
This commit is contained in:
parent
6fc292fef5
commit
c91071bb2a
|
@ -257,7 +257,7 @@ class CookedPostProcessor
|
|||
return unless SiteSetting.crawl_images? || Discourse.store.has_been_uploaded?(url)
|
||||
|
||||
@size_cache[url] = FastImage.size(absolute_url)
|
||||
rescue Zlib::BufError, URI::InvalidURIError, URI::InvalidComponentError
|
||||
rescue Zlib::BufError, URI::InvalidURIError, URI::InvalidComponentError, OpenSSL::SSL::SSLError
|
||||
# FastImage.size raises BufError for some gifs, leave it.
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue