From 6c7a1b11b38c2251b35c58efb7b69c572b4cf07a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 17 Sep 2006 18:44:45 +0000 Subject: [PATCH] r1169: Unset bad cookies --- docs/changes.txt | 1 + includes/init.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index e540251..e52689d 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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 =============================== diff --git a/includes/init.php b/includes/init.php index 9cf8f4f..e190961 100755 --- a/includes/init.php +++ b/includes/init.php @@ -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) -- 2.43.5