summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKeifer Furzland <kfrz.code@gmail.com>2017-03-26 01:47:10 +0000
committerKeifer Furzland <kfrz.code@gmail.com>2017-03-25 20:57:32 -0500
commitddd97f3c91c880d78846b72f7d9cb6c6a5dda5e7 (patch)
tree311a95b5a996ff8794711e154210de2f682b6e4d /app
parentf7d69a74a805f52fe10b42459ede587965ec1926 (diff)
downloadgitlab-ce-ddd97f3c91c880d78846b72f7d9cb6c6a5dda5e7.tar.gz
Update wikis_controller.rb to use strong params
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/wikis_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/wikis_controller.rb b/app/controllers/projects/wikis_controller.rb
index f210f7e61d2..c5e24b9e365 100644
--- a/app/controllers/projects/wikis_controller.rb
+++ b/app/controllers/projects/wikis_controller.rb
@@ -124,6 +124,6 @@ class Projects::WikisController < Projects::ApplicationController
end
def wiki_params
- params[:wiki].slice(:title, :content, :format, :message)
+ params.require(:wiki).permit(:title, :content, :format, :message)
end
end