X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libs%2Fweb%2Fluasrc%2Fsauth.lua;h=41681ab16a7c62f24eb6882b678cf34292afe8a8;hb=80e1900b03b2a5315c791f9240f9d7641ae67562;hp=8ae24a5411f89fdfae5bfd5f0e2d4a54a0589507;hpb=8fcd841aa9af96c8a4a4d3c1a555d2d1ed42332c;p=oweals%2Fluci.git diff --git a/libs/web/luasrc/sauth.lua b/libs/web/luasrc/sauth.lua index 8ae24a541..41681ab16 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 == 0 then return end if not id:match("^%w+$") then