Issue 115 validate collection create argument ranges #116

wants to merge 1 commit into


None yet
2 participants

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.

This comment has been minimized.

Show comment Hide comment

mislav Aug 2, 2011


Pulled in 4d92d1b


mislav commented Aug 2, 2011

Pulled in 4d92d1b

@mislav mislav closed this Aug 2, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment