From: lpsolit%gmail.com <> Date: Sun, 5 Jul 2009 23:01:15 +0000 (+0000) Subject: Bug 502498: Use of uninitialized value in string eq at Bugzilla/CGI.pm line 289 ... X-Git-Tag: bugzilla-3.4rc1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bbf72a974591a775bc3971aeb7eec9e2d13bdf2;p=thirdparty%2Fbugzilla.git Bug 502498: Use of uninitialized value in string eq at Bugzilla/CGI.pm line 289 - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index b4966f9e8c..9a3d46dbdb 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -286,7 +286,9 @@ sub param { # Also look at the URL parameters, after we look at the POST # parameters. This is to allow things like login-form submissions # with URL parameters in the form's "target" attribute. - if (!scalar(@result) && $self->request_method eq 'POST') { + if (!scalar(@result) + && $self->request_method && $self->request_method eq 'POST') + { @result = $self->SUPER::url_param(@_); }