Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Issue 115 validate collection create argument ranges #116
Raise if arguments to Collection#create are non-numeric, negative, or greater than sql BIGINT. Prevents users from providing params which can generate invalid sql queries (ie "... LIMIT 15 OFFSET 29999999999999999999999985"). Is there a more appropriate place to validate inputs? I don't see an obvious clue as to where we should make sure to sanitize inputs to will_paginate.