remove disallowed params
This commit is contained in:
parent
023bd0e9e7
commit
3818c196e0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue