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

index 8ae24a5411f89fdfae5bfd5f0e2d4a54a0589507..c06acdd24afb919891b83d4194fcff5d2020f33f 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
git clone https://git.99rst.org/PROJECT