From: Steven Barth Date: Fri, 31 Jul 2009 17:08:18 +0000 (+0000) Subject: Fix cookie logout X-Git-Tag: 0.10.0~1271 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=f648ab3445df562bc3d4c607d86f19f5bc65794e Fix cookie logout --- diff --git a/libs/web/luasrc/sauth.lua b/libs/web/luasrc/sauth.lua index 8ae24a541..c06acdd24 100644 --- a/libs/web/luasrc/sauth.lua +++ b/libs/web/luasrc/sauth.lua @@ -57,7 +57,7 @@ end -- @param id Session identifier -- @return Session data function read(id) - if not id then + if not id or #id == 0then return end if not id:match("^%w+$") then