Skip to content

Commit

Permalink
force no object initialization when unserializing
Browse files Browse the repository at this point in the history
  • Loading branch information
netcode committed Mar 27, 2017
1 parent 104baa7 commit 6c64759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Normalizers/NormalizeSerialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function run()
if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
//options added @ v 7.0 which allow no evaluating for classes
//object will be instantiated as __PHP_Incomplete_Class
$decoded = @unserialize($this->value);
$decoded = @unserialize($this->value, false);
} else {
$decoded = false; //don't serialize it might be danger
}
Expand Down

0 comments on commit 6c64759

Please sign in to comment.