Skip to content
Snippets Groups Projects
Commit 566ace2d authored by nightpool's avatar nightpool Committed by Eugen Rochko
Browse files

Add entropy to download filenames (#6811)

pretty quick fix, and with the 1 week expiration i don't think we need to be too worried about the existing files

closes #6798
parent 092f1df9
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ class BackupService < BaseService
end
end
archive_filename = ['archive', Time.now.utc.strftime('%Y%m%d%H%M%S'), SecureRandom.hex(2)].join('-') + '.tar.gz'
archive_filename = ['archive', Time.now.utc.strftime('%Y%m%d%H%M%S'), SecureRandom.hex(16)].join('-') + '.tar.gz'
@backup.dump = ActionDispatch::Http::UploadedFile.new(tempfile: tmp_file, filename: archive_filename)
@backup.processed = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment