From 8449716ceb0641c3f76f103fa52b8529013f2581 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Fri, 20 Sep 2024 17:39:58 +0200 Subject: luci-base: expunge correct transport cookies on logout Closes #7269 Thanks to @mikma Signed-off-by: Paul Donald --- modules/luci-base/ucode/controller/admin/index.uc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/ucode/controller/admin/index.uc b/modules/luci-base/ucode/controller/admin/index.uc index f0f7c7fd4d..d433e1161e 100644 --- a/modules/luci-base/ucode/controller/admin/index.uc +++ b/modules/luci-base/ucode/controller/admin/index.uc @@ -143,8 +143,8 @@ return { if (http.getenv('HTTPS') == 'on') http.header('Set-Cookie', `sysauth_https=; expires=Thu, 01 Jan 1970 01:00:00 GMT; path=${url}`); - - http.header('Set-Cookie', `sysauth_http=; expires=Thu, 01 Jan 1970 01:00:00 GMT; path=${url}`); + else + http.header('Set-Cookie', `sysauth_http=; expires=Thu, 01 Jan 1970 01:00:00 GMT; path=${url}`); } http.redirect(url); -- cgit v1.2.3