mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Only allow intergers for page params.
This commit is contained in:
@@ -331,6 +331,8 @@ class ListController < ApplicationController
|
||||
|
||||
def build_topic_list_options
|
||||
options = {}
|
||||
params[:page] = params[:page].to_i rescue 1
|
||||
|
||||
TopicQuery.public_valid_options.each do |key|
|
||||
options[key] = params[key]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user