From: byron jones (glob) Date: Thu, 15 Jul 2010 17:28:57 +0000 (+0200) Subject: Bug 521416: Some web servers fail to set the QUERY_STRING parameter X-Git-Tag: bugzilla-3.6.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdcca19f327210d68f9df3c49c4d795d4d23a417;p=thirdparty%2Fbugzilla.git Bug 521416: Some web servers fail to set the QUERY_STRING parameter r/a=mkanat --- 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(@_); }