1
0
Fork 0

Revert "[DEV-5492] Do not unserialize PHP objects in _sf2_attributes"

This reverts commit 981ba45d7c, reversing
changes made to e5917418fa.
master
Joseph Frazer 2019-06-11 10:36:07 -04:00
parent 981ba45d7c
commit 2f0fea8f49
1 changed files with 5 additions and 11 deletions

View File

@ -1,7 +1,7 @@
/**
* UserSession class
*
* Copyright (C) 2019 R-T Specialty, LLC.
* Copyright (C) 2017 R-T Specialty, LLC.
*
* This file is part of the Liza Data Collection Framework.
*
@ -280,17 +280,11 @@ module.exports = Class.extend( require( 'events' ).EventEmitter,
var key = splits[ i ],
val = splits[ ++i ];
// we do not need _sf2_attributes since they are serialized PHP
// objects and cause problems unserializing when they are
// serialized in PHP7.
if ( key !== '_sf2_attributes' )
{
// the values are serialized PHP data; unserialize them
val = php.unserialize( val );
// the values are serialized PHP data; unserialize them
val = php.unserialize( val );
// add to the session data
session_data[ key ] = val;
}
// add to the session data
session_data[ key ] = val;
}
}