berk/tr8n — pull request #34 by plerohellec (2012-04-10 23:02:05+00:00)
Title: Avoid database exceptions by validating input parameters.

Those changes originate from a security pen test. By submitting empty or malformed parameters, the tester managed to generate postgres exceptions. Some validation of the input parameters before passing them to ActiveRecord avoids those errors.