Patch #16069 » 0005-quickfix-allow-less-than-25.patch
| app/controllers/application_controller.rb | ||
|---|---|---|
|
limit = options[:limit].to_i
|
||
|
if limit < 1
|
||
|
limit = 25
|
||
|
elsif limit > Setting.api_limit.to_i
|
||
|
end
|
||
|
if limit > Setting.api_limit.to_i
|
||
|
limit = Setting.api_limit.to_i
|
||
|
end
|
||
|
if offset.nil? && options[:page].present?
|
||