From 291cf54cb2da35dd10dcf71f9fded5fe0abce9f6 Mon Sep 17 00:00:00 2001 From: Rubab Redwan Date: Mon, 11 Jan 2021 14:47:57 +0600 Subject: [PATCH] replace decode with decode_www_form_component --- lib/jekyll-import/importers/blogger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-import/importers/blogger.rb b/lib/jekyll-import/importers/blogger.rb index f9b9eadb..2f6dc6a2 100644 --- a/lib/jekyll-import/importers/blogger.rb +++ b/lib/jekyll-import/importers/blogger.rb @@ -186,7 +186,7 @@ def tag_end(tag) FileUtils.mkdir_p(target_dir) - file_name = URI.decode("#{post_data[:filename]}.html") + file_name = URI.decode_www_form_component("#{post_data[:filename]}.html") File.open(File.join(target_dir, file_name), "w") do |f| f.flock(File::LOCK_EX)