mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #59979 from elicpeter/patch-1
fix(repair): restrict unserialize() in RemoveBrokenProperties
This commit is contained in:
commit
421e4de7e5
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class RemoveBrokenProperties implements IRepairStep {
|
|||
$brokenIds = [];
|
||||
while ($entry = $result->fetch()) {
|
||||
if (!empty($entry['propertyvalue'])) {
|
||||
$object = @unserialize(str_replace('\x00', chr(0), $entry['propertyvalue']));
|
||||
$object = @unserialize(str_replace('\x00', chr(0), $entry['propertyvalue']), ['allowed_classes' => false]);
|
||||
if ($object === false) {
|
||||
$brokenIds[] = $entry['id'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue