Skip to content

Commit 069a7cc

Browse files
committed
Merge branch 'niklasjansson-master'
2 parents 0e96fee + 0a2ae60 commit 069a7cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/wayback_machine_downloader.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class WaybackMachineDownloader
1414

1515
include ArchiveAPI
1616

17-
VERSION = "2.2.0"
17+
VERSION = "2.2.1"
1818

1919
attr_accessor :base_url, :exact_url, :directory, :all_timestamps,
2020
:from_timestamp, :to_timestamp, :only_filter, :exclude_filter,
@@ -260,6 +260,7 @@ def download_file file_remote_info
260260
file_path = backup_path + file_path_elements[0..-1].join('/')
261261
end
262262
if Gem.win_platform?
263+
dir_path = dir_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
263264
file_path = file_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
264265
end
265266
unless File.exist? file_path

0 commit comments

Comments
 (0)