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
parent
c66b177aae
commit
b09d7ecd60
|
@ -221,7 +221,7 @@ module.exports = Class.extend( require( 'events' ).EventEmitter,
|
||||||
|
|
||||||
this._memcache.get( this._id, function( orig )
|
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
|
// 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
|
// error, because there's not much we can do about that...maybe
|
||||||
|
|
Loading…
Reference in New Issue