mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Validation of params should restrict to max int (#6331)
* FIX: Validation of params should restrict to max int * FIX: Send status 400 when "page" param isn't between 1 and max int
This commit is contained in:
@ -367,7 +367,6 @@ class ListController < ApplicationController
|
||||
|
||||
def build_topic_list_options
|
||||
options = {}
|
||||
params[:page] = params[:page].to_i rescue 1
|
||||
params[:tags] = [params[:tag_id].parameterize] if params[:tag_id].present? && guardian.can_tag_pms?
|
||||
|
||||
TopicQuery.public_valid_options.each do |key|
|
||||
|
Reference in New Issue
Block a user