]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1496570 - Bugzilla doesn't attempt to decode form-urlencoded data without a...
authorDylan William Hardison <dylan@hardison.net>
Fri, 5 Oct 2018 14:34:02 +0000 (10:34 -0400)
committerGitHub <noreply@github.com>
Fri, 5 Oct 2018 14:34:02 +0000 (10:34 -0400)
Bugzilla/Quantum/CGI.pm

index beb84968797297ca4d2db6c3232e0475498e64c3..79fbcfde61ae9a34120d21c1ab53cc47cc324279 100644 (file)
@@ -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;