Skip to content

Commit

Permalink
Ensure that remote_files in attributes has been permitted
Browse files Browse the repository at this point in the history
  • Loading branch information
randalldfloyd committed Dec 11, 2024
1 parent 485800e commit 0a05e5c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def attributes_for_actor # rubocop:disable Metrics/MethodLength
# that they have not removed from the upload widget.
uploaded_files = params.fetch(:uploaded_files, [])
selected_files = params.fetch(:selected_files, {}).values
.map { |f| f.permit(:expires, :file_name, :url, {}) }
browse_everything_urls = uploaded_files &
selected_files.map { |f| f[:url] }

Expand Down

0 comments on commit 0a05e5c

Please sign in to comment.