Skip to content

Commit

Permalink
fix: accept no classes for unserialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 3, 2023
1 parent 639e442 commit a349acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Entity/Cast/ArrayCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function fromDatabase($value, array $params = []): array
}

if ((strpos($value, 'a:') === 0 || strpos($value, 's:') === 0)) {
$value = unserialize($value);
$value = unserialize($value, ['allowed_classes' => false]);
}

return (array) $value;
Expand Down

0 comments on commit a349acd

Please sign in to comment.