Fix issue with index.html pages not loading

we were rejecting empty paths, causing these files to be skipped. How did I miss this?
This commit is contained in:
Felipe 2025-08-19 16:16:24 +00:00 committed by GitHub
parent 40e9c9bb51
commit 8c27aaebc9

View File

@ -776,7 +776,8 @@ class WaybackMachineDownloader
# safely sanitize a file id (or id+timestamp)
def sanitize_and_prepare_id(raw, file_url)
return nil if raw.nil? || raw.empty?
return nil if raw.nil?
return "" if raw.empty?
original = raw.dup
begin
# work on a binary copy to avoid premature encoding errors