summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-09-20 17:39:58 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-09-20 17:39:58 +0200
commit8449716ceb0641c3f76f103fa52b8529013f2581 (patch)
tree6d7cb9bc1d7b2ca1600cd48021baded296b0b6b4
parentb6814c3337e28f83c68ec209e0f1039e49dc46f7 (diff)
luci-base: expunge correct transport cookies on logout
Closes #7269 Thanks to @mikma Signed-off-by: Paul Donald <newtwen+github@gmail.com>
-rw-r--r--modules/luci-base/ucode/controller/admin/index.uc4
1 files 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);