From 6a2a01fbc44c5a777b3a612540a9ced23401c2bc Mon Sep 17 00:00:00 2001 From: "byron jones (glob)" Date: Thu, 15 Jul 2010 19:24:14 +0200 Subject: Bug 521416: Some web servers fail to set the QUERY_STRING parameter r/a=mkanat --- Bugzilla/CGI.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 12bbc5f00..e2d238f5a 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(@_); } -- cgit v1.2.3-24-g4f1b