aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-12-17 11:21:28 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2014-12-17 12:15:03 +0000
commit00090170f96ae43f521ce29a3731859ca5f6738a (patch)
treee31c3d9125c13025771f03a317622ca0c4e6fe38 /perllib/FixMyStreet/Cobrand/FixMyStreet.pm
parente57f715a4625507cf6720d22e676c606bcb56053 (diff)
Version 1.5.2.v1.5.2
Includes: * [UK] Don't show topic form field when reporting abuse. * Use token in moderation response URL to prevent hidden report leak. * Make sure successful submission page is full width.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FixMyStreet.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index 7a0f868d8..9001ca5f7 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -35,6 +35,9 @@ sub extra_contact_validation {
my $self = shift;
my $c = shift;
+ # Don't care about dest if reporting abuse
+ return () if $c->stash->{problem};
+
my %errors;
$c->stash->{dest} = $c->req->param('dest');