Skip to content

Commit

Permalink
Escape non ascii-characters while image downlading from wordpress (#531)
Browse files Browse the repository at this point in the history
Merge pull request 531
  • Loading branch information
ahmetozer authored Dec 5, 2023
1 parent ae5938b commit 3f03bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll-import/importers/wordpressdotcom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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::DEFAULT_PARSER.escape(i["src"])

dst = File.join(assets_folder, File.basename(uri))
i["src"] = File.join("{{ site.baseurl }}", dst)
Expand Down

0 comments on commit 3f03bdb

Please sign in to comment.