From 4ab7f9dcb4ad44d6e5c14f2e42c2c0ba278f5a20 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 8 Dec 2024 19:04:03 +0700 Subject: [PATCH] Update User.php --- src/Legacy/Common/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Legacy/Common/User.php b/src/Legacy/Common/User.php index 14fd389f5..43ecd6a93 100644 --- a/src/Legacy/Common/User.php +++ b/src/Legacy/Common/User.php @@ -489,7 +489,7 @@ class User if (!isset($bb_cfg['dbg_users'][$this->data['user_id']]) && DBG_USER) { bb_setcookie(COOKIE_DBG, null); } elseif (isset($bb_cfg['dbg_users'][$this->data['user_id']]) && !DBG_USER) { - bb_setcookie(COOKIE_DBG, 1, COOKIE_SESSION); + bb_setcookie(COOKIE_DBG, hash('xxh128', $bb_cfg['dbg_users'][$this->data['user_id']]), COOKIE_SESSION); } // Unset sql debug cookies if SQL_DEBUG is disabled or DBG_USER cookie not present