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 Sep 30, 2023
1 parent d77ec8f commit 8d41220
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 8d41220

Please sign in to comment.