Skip to content

Commit b315315

Browse files
authored
Fixed security issue with download 3rd party plugin (cotes2020#2364)
Signed-off-by: George Araujo <[email protected]>
1 parent 0aa3821 commit b315315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_plugins/download-3rd-party.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def download_fonts(url, dest)
3434
unless File.directory?(dest) && !Dir.empty?(dest)
3535
puts "Downloading fonts from #{url} to #{dest}"
3636
# get available fonts from the url
37-
doc = Nokogiri::HTML(URI.open(url, "User-Agent" => "Ruby/#{RUBY_VERSION}"))
37+
doc = Nokogiri::HTML(URI().open(url, "User-Agent" => "Ruby/#{RUBY_VERSION}"))
3838
doc.css('a').each do |link|
3939
# get the file name from the url
4040
file_name = link['href'].split('/').last.split('?').first

0 commit comments

Comments
 (0)