summaryrefslogtreecommitdiffstats
path: root/lib/session.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/session.lua')
-rw-r--r--lib/session.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/session.lua b/lib/session.lua
index 19d35cc..fc7ecde 100644
--- a/lib/session.lua
+++ b/lib/session.lua
@@ -96,7 +96,7 @@ end
-- Returns a timestamp (when the session data was saved) and the session table.
load_session = function ( sessionpath, session )
-- session can only have b64 characters in it
- session = string.gsub ( session, "[^" .. b64 .. "]", "")
+ session = string.gsub ( session or "", "[^" .. b64 .. "]", "")
if #session == 0 then
return nil, {}
end