Skip to content

A platform for community discussion. Free, open, simple.

FIX: Redirecting to download backup from S3 could fail (#20171)

Gerhard Schlager7482b0f70362
diff --git a/app/controllers/admin/backups_controller.rb b/app/controllers/admin/backups_controller.rb
index fd429312e73..99bc0ca2d35 100644
--- a/app/controllers/admin/backups_controller.rb
+++ b/app/controllers/admin/backups_controller.rb
@@ -84,7 +84,7 @@ class Admin::BackupsController < Admin::AdminController
StaffActionLogger.new(current_user).log_backup_download(backup)
if store.remote?
- redirect_to backup.source
+ redirect_to backup.source, allow_other_host: true
else
headers["Content-Length"] = File.size(backup.source).to_s
send_file backup.source