We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents efc7dd1 + 3b2859c commit 8aa5765Copy full SHA for 8aa5765
app/controllers/concerns/paginable.rb
@@ -8,7 +8,7 @@ module Paginable
8
9
##
10
# Regex to validate sort_field param is safe
11
- SORT_COLUMN_FORMAT = /[\w_]+\.[\w_]/.freeze
+ SORT_COLUMN_FORMAT = /[\w_]+\.[\w_]+$/.freeze
12
13
PAGINATION_QUERY_PARAMS = %i[page sort_field sort_direction
14
search controller action].freeze
0 commit comments