diff options
author | byron jones (glob) <bugzilla@glob.com.au> | 2010-07-15 19:24:14 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-07-15 19:24:14 +0200 |
commit | 6a2a01fbc44c5a777b3a612540a9ced23401c2bc (patch) | |
tree | b0c07f229cda8dc7c6bb68446dc6b7f5eef21f09 /Bugzilla | |
parent | ed9e593a9324dffd0d2c0087889e4b6798e25f2f (diff) | |
download | bugzilla-6a2a01fbc44c5a777b3a612540a9ced23401c2bc.tar.gz bugzilla-6a2a01fbc44c5a777b3a612540a9ced23401c2bc.tar.xz |
Bug 521416: Some web servers fail to set the QUERY_STRING parameter
r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/CGI.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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(@_); } |