Skip to content

Commit 8c27aae

Browse files
Fix issue with index.html pages not loading
we were rejecting empty paths, causing these files to be skipped. How did I miss this?
1 parent 40e9c9b commit 8c27aae

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
@@ -776,7 +776,8 @@ def setup_logger
776776

777777
# safely sanitize a file id (or id+timestamp)
778778
def sanitize_and_prepare_id(raw, file_url)
779-
return nil if raw.nil? || raw.empty?
779+
return nil if raw.nil?
780+
return "" if raw.empty?
780781
original = raw.dup
781782
begin
782783
# work on a binary copy to avoid premature encoding errors

0 commit comments

Comments
 (0)