Permalink
Browse files

check_session_hijack bugfix

  • Loading branch information...
1 parent d4f227a commit ea9cf3e62db4f6445476de28f28dee84cb0b6a10 @kaven276 committed Oct 22, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/psp.web.js
View
@@ -129,8 +129,10 @@ function pspdweb(req, res, next){
stat.reqCnt++;
normalReq = true;
cookies = parseCookie(req);
- if (cfg.check_session_hijack && ensureSID() === false) {
- return;
+ if (cfg.check_session_hijack) {
+ if (ensureSID() === false) {
+ return;
+ }
}
DBInMgr.findFreeOraSockThen(reqUrl, req.connection, function(c, br){
if (c) {

0 comments on commit ea9cf3e

Please sign in to comment.