From 0150aec07eadd823a271f7e4c7371a4a8b26f085 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 24 Dec 2016 17:22:41 +0100 Subject: Send cookie FreshRSS_login only once Prior to this patch, two cookies with the same name were sent, the first one was to destroy the cookie, and the second one to create it --- app/Models/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Auth.php b/app/Models/Auth.php index 3313fdf3f..e517e9b2c 100644 --- a/app/Models/Auth.php +++ b/app/Models/Auth.php @@ -236,8 +236,8 @@ class FreshRSS_FormAuth { public static function deleteCookie() { $token = Minz_Session::getLongTermCookie('FreshRSS_login'); - Minz_Session::deleteLongTermCookie('FreshRSS_login'); if (ctype_alnum($token)) { + Minz_Session::deleteLongTermCookie('FreshRSS_login'); @unlink(DATA_PATH . '/tokens/' . $token . '.txt'); } -- cgit v1.2.3