]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 232155: Remove uninitialized value warning from Pperl's Cookie.pm and...
authorjocuri%softhome.net <>
Thu, 21 Oct 2004 03:58:59 +0000 (03:58 +0000)
committerjocuri%softhome.net <>
Thu, 21 Oct 2004 03:58:59 +0000 (03:58 +0000)
Bugzilla/Auth/CGI.pm

index 471e538e944a54970e9d5735de47256fca36d83d..0a1a331f1942a83ea6bb8795ffae99aa907315d2 100644 (file)
@@ -167,13 +167,7 @@ sub login {
 
     # The account may be disabled
     if ($authres == AUTH_DISABLED) {
-        # Clear the cookie
-
-        $cgi->send_cookie(-name => 'Bugzilla_login',
-                          -expires => "Tue, 15-Sep-1998 21:49:00 GMT");
-        $cgi->send_cookie(-name => 'Bugzilla_logincookie',
-                          -expires => "Tue, 15-Sep-1998 21:49:00 GMT");
-
+        clear_browser_cookies();
         # and throw a user error
         ThrowUserError("account_disabled",
                        {'disabled_reason' => $extra});
@@ -222,8 +216,10 @@ sub logout {
 sub clear_browser_cookies {
     my $cgi = Bugzilla->cgi;
     $cgi->send_cookie(-name => "Bugzilla_login",
+                      -value => "",
                       -expires => "Tue, 15-Sep-1998 21:49:00 GMT");
     $cgi->send_cookie(-name => "Bugzilla_logincookie",
+                      -value => "",
                       -expires => "Tue, 15-Sep-1998 21:49:00 GMT");
 }