Kevin Bullock
Not a member
Kevin Bullock's latest activity
Friday, February 11 2011
6299
Possible SQL injection in ActiveRecord limit
was updated
in Ruby on Rails
-
Kevin Bullock commented at 3:20 AM...or allow an optional second parameter, and quote them both. That would cause ActiveRecord::StatementInvalid to be thrown when bad (non-integer) params are pa...
-
Kevin Bullock commented at 3:17 AMConverting to integer isn't the solution; the LIMIT clause allows you to specify both a limit and an offset, like so:
LIMIT x, y. To protect against injection, ...