Filter more windows unsafe characters

This commit is contained in:
hartator
2016-08-09 20:56:47 -05:00
parent 599e97bea0
commit 762ccb20c7

View File

@@ -148,7 +148,7 @@ class WaybackMachineDownloader
file_path = backup_path + file_path_elements[0..-1].join('/')
end
if Gem.win_platform?
file_path = file_path.gsub(/[:*?<>\\|]/) {|s| '%' + s.ord.to_s(16) }
file_path = file_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
end
unless File.exists? file_path
begin