]> 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 23:01:15 +0000 (23:01 +0000)
committerlpsolit%gmail.com <>
Sun, 5 Jul 2009 23:01:15 +0000 (23:01 +0000)
Bugzilla/CGI.pm

index b4966f9e8cabbc76f95464719ca7db0ba873936b..9a3d46dbdb4409399d2ae03d6935985a81f57c9e 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(@_);
         }