summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/controller
diff options
context:
space:
mode:
authorKyle Rogers <7157021+kyle30312@users.noreply.github.com>2018-09-26 18:33:58 -0400
committerKyle Rogers <7157021+kyle30312@users.noreply.github.com>2018-09-27 10:04:57 -0400
commitc9e4085c6417cd2c022527ce7b9244f0fac1c5e7 (patch)
tree0d7fbb9ed3ef427c581ebb549751a1de047ac900 /modules/luci-base/luasrc/controller
parentc70c5cc3a1b552eef694061f9ca887b1c42566a0 (diff)
luci-base: fix sysauth cookie not removed on logout
Signed-off-by: Kyle Rogers <7157021+kyle30312@users.noreply.github.com>
Diffstat (limited to 'modules/luci-base/luasrc/controller')
-rw-r--r--modules/luci-base/luasrc/controller/admin/index.lua4
1 files 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 7e0a207437..9a084d10e2 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