summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/sauth.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-07-31 17:08:18 +0000
committerSteven Barth <steven@midlink.org>2009-07-31 17:08:18 +0000
commitf648ab3445df562bc3d4c607d86f19f5bc65794e (patch)
tree9298b869ffd0b311d8f7d033bd4f77a22ee6f3b2 /libs/web/luasrc/sauth.lua
parentf311d13ca16e079e6e9c68bc1c62fb6e94400ee5 (diff)
Fix cookie logout
Diffstat (limited to 'libs/web/luasrc/sauth.lua')
-rw-r--r--libs/web/luasrc/sauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/sauth.lua b/libs/web/luasrc/sauth.lua
index 8ae24a5411..c06acdd24a 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