Skip to content
Snippets Groups Projects
Commit 682a836a authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

adding whitelist params


Signed-off-by: default avatarman13 <man13@inf.ufpr.br>
parent 606ea5e7
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,6 @@ class Management::MimeTypesController < ManagementController
# Never trust parameters from the scary internet, only allow the white list through.
def mime_type_params
params.fetch(:management_mime_type, {})
params.require(:mime_type).permit(:extension, :mime_type)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment