diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 010fd97..4c3a910 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,5 +1,5 @@ # gossamer threads migration-import code -# v0.15.5 +# v0.15.6 require 'mysql2' require 'open-uri' @@ -188,7 +188,7 @@ class GossamerForumsImporter < ImportScripts::Base def download_attachment(url) begin puts "URL: '#{url}'" - URI.open(url).read + URI.open(url, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE).read rescue OpenURI::HTTPError => e puts "Failed to download attachment from #{url}: #{e.message}" nil