diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-07 09:57:51 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-07 09:57:51 +0000 |
commit | 6fd364d2b873e5804753f5115710a40ce666d633 (patch) | |
tree | 5cb1b7bc5667d1053919752af61178d974f855b2 | |
parent | bc04a16b91516bee5164921d223605911fb67e44 (diff) |
Check for some spambots.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Contact.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Contact.pm b/perllib/FixMyStreet/App/Controller/Contact.pm index c8b0c2046..04360301e 100644 --- a/perllib/FixMyStreet/App/Controller/Contact.pm +++ b/perllib/FixMyStreet/App/Controller/Contact.pm @@ -113,6 +113,9 @@ sub validate : Private { or $c->req->param('update_id') && $c->req->param('update_id') !~ /^[1-9]\d*$/; + push @errors, _('There was a problem showing this page. Please try again later.') + if $c->req->params->{message} && $c->req->params->{message} =~ /\[url=/; + unshift @errors, _('There were problems with your report. Please see below.') if scalar keys %field_errors; |