From 358a60a3f7d7ded7c5b3c16d808eb269a2e58d46 Mon Sep 17 00:00:00 2001 From: Nathan Angelacos Date: Wed, 14 Nov 2007 21:56:47 +0000 Subject: *Work in progress* Use the session library to set up a session token, clean up the session lib git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@304 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/session.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3