mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
Sanitise pagination input for new API
This commit is contained in:
@@ -53,7 +53,7 @@ module JsonApiPagination
|
||||
end
|
||||
|
||||
def current_page
|
||||
params[:page] || 1
|
||||
(params[:page] || 1).to_i
|
||||
end
|
||||
|
||||
def total_pages
|
||||
|
||||
Reference in New Issue
Block a user