summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-10-05 16:34:02 +0200
committerGitHub <noreply@github.com>2018-10-05 16:34:02 +0200
commitf564933fdd8a06d44c4d5cc81a5c3e49e7be8928 (patch)
tree10452884f52d847266e0a8bb2bce29c0e7bae1d0 /Bugzilla
parent41a59402f4959bf2bdfc1bd1e609d51632b165a6 (diff)
downloadbugzilla-f564933fdd8a06d44c4d5cc81a5c3e49e7be8928.tar.gz
bugzilla-f564933fdd8a06d44c4d5cc81a5c3e49e7be8928.tar.xz
Bug 1496570 - Bugzilla doesn't attempt to decode form-urlencoded data without a content-type header
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Quantum/CGI.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Quantum/CGI.pm b/Bugzilla/Quantum/CGI.pm
index beb849687..79fbcfde6 100644
--- a/Bugzilla/Quantum/CGI.pm
+++ b/Bugzilla/Quantum/CGI.pm
@@ -91,6 +91,8 @@ sub _ENV {
= $req->content->is_multipart ? $req->body_size : $headers->content_length;
my %env_headers = (HTTP_COOKIE => '', HTTP_REFERER => '');
+ $headers->content_type('application/x-www-form-urlencoded; charset=utf-8')
+ unless $headers->content_type;
for my $name (@{$headers->names}) {
my $key = uc "http_$name";
$key =~ s/\W/_/g;