Skip to content

Commit

Permalink
Allow other hosts for raw redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp authored Jun 18, 2024
1 parent acb2cf5 commit 6543668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/pastes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def destroy
def raw
authorize @paste, :show?

redirect_to @paste.content.attachment.url
redirect_to @paste.content.attachment.url, allow_other_host: true
end

private
Expand Down

0 comments on commit 6543668

Please sign in to comment.