Permalink
Browse files

suggested fix for iss8 by 'daurnimator'

  • Loading branch information...
1 parent 8b86074 commit 23c9a4c538823c8c3c0dd36af02e41689a62509c JesseH committed Sep 17, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 tir/session.lua
View
@@ -52,9 +52,9 @@ end
function parse_session_id(cookie)
if not cookie then return nil end
- local cookie = parse_http_cookie(cookie)
-
- return cookie.session[1]
+ local session_cookie = parse_http_cookie(cookie).session
+ return session_cookie and session_cookie[1] or nil
+
end

0 comments on commit 23c9a4c

Please sign in to comment.