diff options
Diffstat (limited to 'libs/web/luasrc/sauth.lua')
-rw-r--r-- | libs/web/luasrc/sauth.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/web/luasrc/sauth.lua b/libs/web/luasrc/sauth.lua index b724bf2d2..894732dfa 100644 --- a/libs/web/luasrc/sauth.lua +++ b/libs/web/luasrc/sauth.lua @@ -57,8 +57,11 @@ end -- @param id Session identifier -- @return Session data function read(id) + if not id then + return + end clean() - if not id or not sane(sessionpath .. "/" .. id) then + if not sane(sessionpath .. "/" .. id) then return end return luci.fs.readfile(sessionpath .. "/" .. id) |