Don't crash when passing in invalid values for filters
authorMagnus Hagander <magnus@hagander.net>
Sun, 15 Apr 2018 12:49:13 +0000 (14:49 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sun, 15 Apr 2018 12:49:13 +0000 (14:49 +0200)
commit4c1233cbfe36805fe5fb511b6746bae86cac975d
tree2486460a28f48db88439a6b51d982aaf56822ecc
parentddf65816afb2e17f51d9279f2a4b6d7787aa0301
Don't crash when passing in invalid values for filters

Previously we'd throw a 500 internal server error, and cause error
logging to happen. This became evident when scripts trying to SQL-inject
the site started hitting us..

Instead, just ignore any filters that pass non-integer values into
integer fields completely.
pgcommitfest/commitfest/views.py