Skip to content

Commit

Permalink
Disallow unserializing class.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 16, 2018
1 parent 26e26cd commit 808b12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MessageBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function retrieve()
$this->instance->setSessionStore($this->session);

if ($this->session->has('message')) {
$messages = unserialize($this->session->pull('message'));
$messages = unserialize($this->session->pull('message'), ['allowed_classes' => false]);
}

if (is_array($messages)) {
Expand Down

0 comments on commit 808b12d

Please sign in to comment.