diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-05-18 15:54:04 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-05-18 15:54:04 +0100 |
commit | 513c31baa905c8f39a1230306d2c6a06f4cacc76 (patch) | |
tree | f0cf26c31388ce076b8b27ac5119e993eb38da47 | |
parent | cab708bbb2e93034ba6a4dd4476a10ffecec481e (diff) |
Try and work if given a JPEG but with an incorrect MIME type, thanks Citrix.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 6d22a0556..d0e6880fb 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -854,6 +854,7 @@ sub process_photo_upload : Private { # check that the photo is a jpeg my $ct = $upload->type; + $ct =~ s/x-citrix-//; unless ( $ct eq 'image/jpeg' || $ct eq 'image/pjpeg' ) { $c->stash->{photo_error} = _('Please upload a JPEG image only'); return; |