mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 16:31:22 +08:00
Fix download endpoint to allow redirects to other hosts [SCI-9465]
This commit is contained in:
parent
d181465e12
commit
22a130e502
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class AssetSyncController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def download
|
def download
|
||||||
redirect_to @asset.file.url
|
redirect_to(@asset.file.url, allow_other_host: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue