remove disallowed params

This commit is contained in:
Sam 2017-02-15 16:47:14 -05:00
parent 023bd0e9e7
commit 3818c196e0
1 changed files with 5 additions and 0 deletions

View File

@ -286,6 +286,11 @@ class ListController < ApplicationController
options[:topic_ids] = param_to_integer_list(:topic_ids) options[:topic_ids] = param_to_integer_list(:topic_ids)
options[:no_subcategories] = options[:no_subcategories] == 'true' options[:no_subcategories] = options[:no_subcategories] == 'true'
options[:slow_platform] = slow_platform? options[:slow_platform] = slow_platform?
options.delete(:per_page)
options.delete(:limit)
options.delete(:except_topic_ids)
options.delete(:visible)
options.delete(:no_definitions)
options options
end end