]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 502498: Use of uninitialized value in string eq at Bugzilla/CGI.pm line 289 ...
authorlpsolit%gmail.com <>
Sun, 5 Jul 2009 22:59:22 +0000 (22:59 +0000)
committerlpsolit%gmail.com <>
Sun, 5 Jul 2009 22:59:22 +0000 (22:59 +0000)
Bugzilla/CGI.pm

index 5a50dbbebd870e891c9f3fc622fdcf1843e54169..6fb986aa564e8e8e6a978041a054711ec931d0e0 100644 (file)
@@ -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(@_);
         }