aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbyron jones (glob) <bugzilla@glob.com.au>2010-07-15 19:28:57 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-07-15 19:28:57 +0200
commitcdcca19f327210d68f9df3c49c4d795d4d23a417 (patch)
treef8792b6cdbd1caa5837e79f883a738b713fb5a78
parentBug 455585: Installation docs should recommend using package management inste... (diff)
downloadbugzilla-cdcca19f327210d68f9df3c49c4d795d4d23a417.tar.gz
bugzilla-cdcca19f327210d68f9df3c49c4d795d4d23a417.tar.bz2
bugzilla-cdcca19f327210d68f9df3c49c4d795d4d23a417.zip
Bug 521416: Some web servers fail to set the QUERY_STRING parameter
r/a=mkanat
-rw-r--r--Bugzilla/CGI.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index 6e9dfd0ce..4a8140df3 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(@_);
}