mirror of
https://github.com/nextcloud/server.git
synced 2026-06-19 13:39:40 -04:00
Merge pull request #60983 from nextcloud/backport/60884/stable34
[stable34] fix(TaskProcessing): restrict allowed_classes in Manager cache deserialization
This commit is contained in:
commit
495f3082a0
1 changed files with 7 additions and 1 deletions
|
|
@ -939,7 +939,13 @@ class Manager implements IManager {
|
|||
if ($this->availableTaskTypes === null) {
|
||||
$cachedValue = $this->distributedCache->get($cacheKey);
|
||||
if ($cachedValue !== null) {
|
||||
$this->availableTaskTypes = unserialize($cachedValue);
|
||||
$this->availableTaskTypes = unserialize($cachedValue, [
|
||||
'allowed_classes' => [
|
||||
ShapeDescriptor::class,
|
||||
ShapeEnumValue::class,
|
||||
EShapeType::class,
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
// Either we have no cache or showDisabled is turned on, which we don't want to cache, ever.
|
||||
|
|
|
|||
Loading…
Reference in a new issue