Skip to content

Commit 421e4de

Browse files
authored
Merge pull request #59979 from elicpeter/patch-1
fix(repair): restrict unserialize() in RemoveBrokenProperties
2 parents 69af641 + bc7f4b5 commit 421e4de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Repair/RemoveBrokenProperties.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function run(IOutput $output): void {
3838
$brokenIds = [];
3939
while ($entry = $result->fetch()) {
4040
if (!empty($entry['propertyvalue'])) {
41-
$object = @unserialize(str_replace('\x00', chr(0), $entry['propertyvalue']));
41+
$object = @unserialize(str_replace('\x00', chr(0), $entry['propertyvalue']), ['allowed_classes' => false]);
4242
if ($object === false) {
4343
$brokenIds[] = $entry['id'];
4444
}

0 commit comments

Comments
 (0)