Ensure that the http_referer is not longer than 255 characters
by chopping off any extra. The database field is a varchar(255)
and there is nothing in the app to validate the field length
so it was possible to throw a db exception if the http_referer
is longer than 255 chars.