From cdcca19f327210d68f9df3c49c4d795d4d23a417 Mon Sep 17 00:00:00 2001 From: "byron jones (glob)" Date: Thu, 15 Jul 2010 19:28:57 +0200 Subject: [PATCH] Bug 521416: Some web servers fail to set the QUERY_STRING parameter r/a=mkanat --- Bugzilla/CGI.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 6e9dfd0cec..4a8140df3b 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -297,6 +297,9 @@ sub param { if (!scalar(@result) && $self->request_method && $self->request_method eq 'POST') { + # Some servers fail to set the QUERY_STRING parameter, which + # causes undef issues + $ENV{'QUERY_STRING'} = '' unless exists $ENV{'QUERY_STRING'}; @result = $self->SUPER::url_param(@_); } -- 2.47.2