We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e9c9b commit 8c27aaeCopy full SHA for 8c27aae
lib/wayback_machine_downloader.rb
@@ -776,7 +776,8 @@ def setup_logger
776
777
# safely sanitize a file id (or id+timestamp)
778
def sanitize_and_prepare_id(raw, file_url)
779
- return nil if raw.nil? || raw.empty?
+ return nil if raw.nil?
780
+ return "" if raw.empty?
781
original = raw.dup
782
begin
783
# work on a binary copy to avoid premature encoding errors
0 commit comments