diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-09-27 21:22:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-27 21:22:32 +0200 |
commit | a291a999a7d396adc1238bfbe4e0abbd870ba8f9 (patch) | |
tree | 7aea7a1d499a6739c07640c8ac08c170a184cbe1 /modules/luci-base/luasrc/controller | |
parent | 58d7ee8ab328f0478863bf4aeac64f53a6c9816f (diff) | |
parent | c9e4085c6417cd2c022527ce7b9244f0fac1c5e7 (diff) |
Merge pull request #2184 from kyle30312/logout-cookie-fix
luci-base: fix sysauth cookie not removed on logout
Diffstat (limited to 'modules/luci-base/luasrc/controller')
-rw-r--r-- | modules/luci-base/luasrc/controller/admin/index.lua | 4 |
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 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 |