From: lpsolit%gmail.com <> Date: Sun, 5 Jul 2009 22:59:22 +0000 (+0000) Subject: Bug 502498: Use of uninitialized value in string eq at Bugzilla/CGI.pm line 289 ... X-Git-Tag: bugzilla-3.5.1~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03d2790c4849657d9fcff7b5fdc0b78dfc0dd382;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 5a50dbbebd..6fb986aa56 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(@_); }