From f648ab3445df562bc3d4c607d86f19f5bc65794e Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 31 Jul 2009 17:08:18 +0000 Subject: Fix cookie logout --- libs/web/luasrc/sauth.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3