From 844f59b7812db111ce841196bd35bd6d2bab0330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96ZER?= <10574489+ahmetozer@users.noreply.github.com> Date: Sat, 25 Nov 2023 14:41:27 +0300 Subject: [PATCH] Escape non ascii-characters --- lib/jekyll-import/importers/wordpressdotcom.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-import/importers/wordpressdotcom.rb b/lib/jekyll-import/importers/wordpressdotcom.rb index 7fdcd8e5..c4f53ff2 100644 --- a/lib/jekyll-import/importers/wordpressdotcom.rb +++ b/lib/jekyll-import/importers/wordpressdotcom.rb @@ -28,7 +28,7 @@ def self.download_images(title, post_hpricot, assets_folder) Jekyll.logger.info "Downloading images for ", title images.each do |i| - uri = i["src"] + uri = URI::Parser.new.escape(i["src"]) dst = File.join(assets_folder, File.basename(uri)) i["src"] = File.join("{{ site.baseurl }}", dst)