Skip to content

Commit 02beabb

Browse files
committed
sponsorships#download_asset: address UnsafeRedirectError
intentionally unsafe
1 parent baad066 commit 02beabb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/admin/sponsorships_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def show
1111
def download_asset
1212
asset = @sponsorship.asset_file
1313
raise ActiveRecord::RecordNotFound unless asset
14-
redirect_to asset.download_url()
14+
redirect_to(asset.download_url(), allow_other_host: true)
1515
end
1616

1717
def edit

0 commit comments

Comments
 (0)