1
0
Fork 0

Don't corrupt PHP session if missing session data

`undefined' was inserted into the session if data could not be
retrieved.

* src/server/request/UserSession.js (_appendSessionData): Do not write
  session data if original data cannot be retrieved.
master
Mike Gerwitz 2017-08-15 11:59:01 -04:00
parent c66b177aae
commit b09d7ecd60
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ module.exports = Class.extend( require( 'events' ).EventEmitter,
this._memcache.get( this._id, function( orig )
{
if ( orig === null )
if ( !orig )
{
// well we gave it a good shot! (right now we don't indicate
// error, because there's not much we can do about that...maybe