diff options
-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(@_); } |