Commit 2ade22da authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '23363-use-strong-params-in-wikis-controller' into 'master'

Update wikis_controller.rb to use strong params

Closes #23363

See merge request !10240
parents d4c99f64 ddd97f3c
...@@ -124,6 +124,6 @@ class Projects::WikisController < Projects::ApplicationController ...@@ -124,6 +124,6 @@ class Projects::WikisController < Projects::ApplicationController
end end
def wiki_params def wiki_params
params[:wiki].slice(:title, :content, :format, :message) params.require(:wiki).permit(:title, :content, :format, :message)
end end
end end
---
title: Update wikis_controller.rb to use strong params
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment