r1169: Unset bad cookies
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 17 Sep 2006 18:44:45 +0000 (18:44 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 17 Sep 2006 18:44:45 +0000 (18:44 +0000)
docs/changes.txt
includes/init.php

index e540251aa396a3675fb83a7f369b59698ba0205c..e52689d39508805aa9112e7151ba0c43ab69a94e 100644 (file)
@@ -10,6 +10,7 @@
 - Process custom field data on newreport.php
 - Add regex matching check to process_custom_fields()
 - Missed some string conversions to gettext
+- If cookies do not authenticate right, unset them [includes/init.php]
 
 1.1.0 Beta 2
 ===============================
index 9cf8f4fac0bda31467f027235d0ec8c9726b118d..e190961382fb2239ec170b240ad17ec9c1b08b67 100755 (executable)
@@ -113,6 +113,10 @@ if ($userid)
        $funct->cookie(COOKIE_PREFIX . 'userid', $bugsys->userinfo['userid']);
        $funct->cookie(COOKIE_PREFIX . 'authkey', $bugsys->userinfo['authkey']);
     }
+    else
+    {
+       $userinfo = null;
+    }
 }
 
 if (!$userinfo)