Skip to content

Commit

Permalink
Merge pull request #163 from publify/limit-seo-controller-params
Browse files Browse the repository at this point in the history
Limit allowed SEO settings params
  • Loading branch information
mvz authored Oct 13, 2024
2 parents 21f3f86 + f6ac3db commit 47ba1e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controllers/admin/seo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def update
private

def settings_params
@settings_params ||= params.require(:setting).permit!
@settings_params ||= params.require(:setting).permit(settings_keys)
end

def settings_keys
@setting.settings_keys + [:custom_permalink]
end

VALID_SECTIONS = %w(general titles permalinks).freeze
Expand Down

0 comments on commit 47ba1e4

Please sign in to comment.