aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Contact.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-08-05 19:53:27 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-08-05 19:53:27 +0100
commita74262c463b4cd147ee2d69da117f2b8ae61e329 (patch)
tree84b4b4c6ecd9fff848f25c09160061352727b6f4 /perllib/FixMyStreet/App/Controller/Contact.pm
parent931fca76596c0f64c79716d12b05d54193319d85 (diff)
Redirect if POSTed form is GETted.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Contact.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Contact.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Contact.pm b/perllib/FixMyStreet/App/Controller/Contact.pm
index 88ac4987f..9d7051e2f 100644
--- a/perllib/FixMyStreet/App/Controller/Contact.pm
+++ b/perllib/FixMyStreet/App/Controller/Contact.pm
@@ -39,6 +39,8 @@ Handle contact us form submission
sub submit : Path('submit') : Args(0) {
my ( $self, $c ) = @_;
+ $c->res->redirect( '/contact' ) and return unless $c->req->method eq 'POST';
+
return
unless $c->forward('setup_request')
&& $c->forward('determine_contact_type')