From: Dylan William Hardison Date: Fri, 5 Oct 2018 14:34:02 +0000 (-0400) Subject: Bug 1496570 - Bugzilla doesn't attempt to decode form-urlencoded data without a... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f564933fdd8a06d44c4d5cc81a5c3e49e7be8928;p=thirdparty%2Fbugzilla.git Bug 1496570 - Bugzilla doesn't attempt to decode form-urlencoded data without a content-type header --- 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;