From 26c18138ebea82e3300b9a6f74c5a0158283292e Mon Sep 17 00:00:00 2001 From: saint Date: Wed, 26 Jun 2024 21:57:32 +1000 Subject: [PATCH] v0.15.6 Minor fix --- gossamer_forums.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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