From f3a846205d6c3f0debf936e04c143e38d31feb77 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Thu, 9 Jul 2015 14:05:59 +0200 Subject: Bugfix: Allow larger page counts in API. Because there are lists that large. --- web/lib/api.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/lib') diff --git a/web/lib/api.rb b/web/lib/api.rb index 9ad8c42..5c8cb5c 100644 --- a/web/lib/api.rb +++ b/web/lib/api.rb @@ -127,8 +127,8 @@ class APIParameters if p[:rp] !~ /^[0-9]{1,3}$/ raise ArgumentError, 'results per page must be integer between 0 and 999' end - if p[:page] !~ /^[0-9]{1,4}$/ - raise ArgumentError, 'page must be integer between 0 and 9999' + if p[:page] !~ /^[0-9]{1,6}$/ + raise ArgumentError, 'page must be integer between 0 and 999999' end @page = p[:page].to_i @results_per_page = p[:rp].to_i -- cgit v1.2.3