From: byron jones (glob) Date: Thu, 15 Jul 2010 17:27:22 +0000 (+0200) Subject: Bug 521416: Some web servers fail to set the QUERY_STRING parameter X-Git-Tag: bugzilla-3.7.3~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e66d1d42cb64f6034ad9c0ee3e4e94c9c725adee;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 12bbc5f00c..e2d238f5a2 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -308,6 +308,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(@_); }