summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-07-06 00:59:22 +0200
committerlpsolit%gmail.com <>2009-07-06 00:59:22 +0200
commit03d2790c4849657d9fcff7b5fdc0b78dfc0dd382 (patch)
tree019ba9d58fc8cee046cd47eca96689bb0abfd2f5
parent914fb1e84d015ab400fe16e8a03ce7e552af9a05 (diff)
downloadbugzilla-03d2790c4849657d9fcff7b5fdc0b78dfc0dd382.tar.gz
bugzilla-03d2790c4849657d9fcff7b5fdc0b78dfc0dd382.tar.xz
Bug 502498: Use of uninitialized value in string eq at Bugzilla/CGI.pm line 289 - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
-rw-r--r--Bugzilla/CGI.pm4
1 files changed, 3 insertions, 1 deletions
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(@_);
}