From: Kyle Rogers <7157021+kyle30312@users.noreply.github.com> Date: Wed, 26 Sep 2018 22:33:58 +0000 (-0400) Subject: luci-base: fix sysauth cookie not removed on logout X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F2184%2Fhead;p=project%2Fluci.git luci-base: fix sysauth cookie not removed on logout Signed-off-by: Kyle Rogers <7157021+kyle30312@users.noreply.github.com> --- 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