Fix cookie logout
authorSteven Barth <steven@midlink.org>
Fri, 31 Jul 2009 17:08:18 +0000 (17:08 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 31 Jul 2009 17:08:18 +0000 (17:08 +0000)
libs/web/luasrc/sauth.lua

index 8ae24a5..c06acdd 100644 (file)
@@ -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