From c9e4085c6417cd2c022527ce7b9244f0fac1c5e7 Mon Sep 17 00:00:00 2001 From: Kyle Rogers <7157021+kyle30312@users.noreply.github.com> Date: Wed, 26 Sep 2018 18:33:58 -0400 Subject: luci-base: fix sysauth cookie not removed on logout Signed-off-by: Kyle Rogers <7157021+kyle30312@users.noreply.github.com> --- modules/luci-base/luasrc/controller/admin/index.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/luasrc/controller/admin/index.lua b/modules/luci-base/luasrc/controller/admin/index.lua index 7e0a20743..9a084d10e 100644 --- a/modules/luci-base/luasrc/controller/admin/index.lua +++ b/modules/luci-base/luasrc/controller/admin/index.lua @@ -94,8 +94,8 @@ function action_logout() if sid then utl.ubus("session", "destroy", { ubus_rpc_session = sid }) - luci.http.header("Set-Cookie", "sysauth=%s; expires=%s; path=%s/" %{ - sid, 'Thu, 01 Jan 1970 01:00:00 GMT', dsp.build_url() + luci.http.header("Set-Cookie", "sysauth=%s; expires=%s; path=%s" %{ + '', 'Thu, 01 Jan 1970 01:00:00 GMT', dsp.build_url() }) end -- cgit v1.2.3