From f564933fdd8a06d44c4d5cc81a5c3e49e7be8928 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 5 Oct 2018 10:34:02 -0400 Subject: Bug 1496570 - Bugzilla doesn't attempt to decode form-urlencoded data without a content-type header --- Bugzilla/Quantum/CGI.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla') 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; -- cgit v1.2.3-24-g4f1b