Skip to content

Commit

Permalink
sponsorships#download_asset: address UnsafeRedirectError
Browse files Browse the repository at this point in the history
intentionally unsafe
  • Loading branch information
sorah committed Feb 9, 2025
1 parent baad066 commit 02beabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/sponsorships_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def show
def download_asset
asset = @sponsorship.asset_file
raise ActiveRecord::RecordNotFound unless asset
redirect_to asset.download_url()
redirect_to(asset.download_url(), allow_other_host: true)
end

def edit
Expand Down

0 comments on commit 02beabb

Please sign in to comment.