From 03d2790c4849657d9fcff7b5fdc0b78dfc0dd382 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 5 Jul 2009 22:59:22 +0000 Subject: Bug 502498: Use of uninitialized value in string eq at Bugzilla/CGI.pm line 289 - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/CGI.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 5a50dbbeb..6fb986aa5 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(@_); } -- cgit v1.2.3-24-g4f1b