From 762ccb20c7d0fe087f85dc9aa999df3e9f864844 Mon Sep 17 00:00:00 2001 From: hartator Date: Tue, 9 Aug 2016 20:56:47 -0500 Subject: [PATCH] Filter more windows unsafe characters --- lib/wayback_machine_downloader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index 1fa5629..84bca6c 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -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