Skip to content

Commit 7d4b31c

Browse files
Merge pull request #61203 from nextcloud/backport/59979/stable34
[stable34] fix(repair): restrict unserialize() in RemoveBrokenProperties
2 parents 208ca0f + c919537 commit 7d4b31c

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
@@ -37,7 +37,7 @@ public function run(IOutput $output): void {
3737
$brokenIds = [];
3838
while ($entry = $result->fetch()) {
3939
if (!empty($entry['propertyvalue'])) {
40-
$object = @unserialize(str_replace('\x00', chr(0), $entry['propertyvalue']));
40+
$object = @unserialize(str_replace('\x00', chr(0), $entry['propertyvalue']), ['allowed_classes' => false]);
4141
if ($object === false) {
4242
$brokenIds[] = $entry['id'];
4343
}

0 commit comments

Comments
 (0)