Skip to content

Commit

Permalink
fixes #331 "mass assignment" vuln, permit explicit option labels (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchud authored Dec 20, 2024
1 parent 8afdde0 commit 9e51cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/evaluation_forms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def evaluation_form_params
evaluation_criteria_attributes: [
:id, :title, :description, :points_or_weight, :scoring_type,
:option_range_start, :option_range_end, :_destroy,
{ option_labels: {} }
{ option_labels: %i[0 1 2 3 4 5 6 7 8 9 10] }
])
closing_date = parse_closing_date(permitted[:closing_date])
permitted = permitted.merge({ closing_date: }) if closing_date
Expand Down

0 comments on commit 9e51cd5

Please sign in to comment.