Skip to content

Commit

Permalink
#269 removed serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Feb 6, 2024
1 parent a2e7e70 commit 9eed85c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lam/lib/modules.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2433,8 +2433,8 @@ class accountContainer {
*/
function __sleep() {
// encrypt data
$this->attributes = lamEncrypt(serialize($this->attributes));
$this->attributes_orig = lamEncrypt(serialize($this->attributes_orig));
$this->attributes = lamEncrypt(json_encode($this->attributes));
$this->attributes_orig = lamEncrypt(json_encode($this->attributes_orig));
$this->module = lamEncrypt(serialize($this->module));
// save all attributes
return array_keys(get_object_vars($this));
Expand All @@ -2445,8 +2445,8 @@ class accountContainer {
*/
function __wakeup() {
// decrypt data
$this->attributes = unserialize(lamDecrypt($this->attributes));
$this->attributes_orig = unserialize(lamDecrypt($this->attributes_orig));
$this->attributes = json_decode(lamDecrypt($this->attributes), true);
$this->attributes_orig = json_decode(lamDecrypt($this->attributes_orig), true);
$this->module = unserialize(lamDecrypt($this->module));
}

Expand Down

0 comments on commit 9eed85c

Please sign in to comment.