Skip to content

Commit a349acd

Browse files
committed
fix: accept no classes for unserialize()
1 parent 639e442 commit a349acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Entity/Cast/ArrayCast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function fromDatabase($value, array $params = []): array
2626
}
2727

2828
if ((strpos($value, 'a:') === 0 || strpos($value, 's:') === 0)) {
29-
$value = unserialize($value);
29+
$value = unserialize($value, ['allowed_classes' => false]);
3030
}
3131

3232
return (array) $value;

0 commit comments

Comments
 (0)