mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
Merge pull request #26270 from nextcloud/fix/invalid-source-storage-path
Catch invalid cache source storage path
This commit is contained in:
commit
057c72d38b
1 changed files with 4 additions and 0 deletions
|
|
@ -642,6 +642,10 @@ class Cache implements ICache {
|
|||
$targetPath = $this->normalize($targetPath);
|
||||
|
||||
$sourceData = $sourceCache->get($sourcePath);
|
||||
if ($sourceData === false) {
|
||||
throw new \Exception('Invalid source storage path: ' . $sourcePath);
|
||||
}
|
||||
|
||||
$sourceId = $sourceData['fileid'];
|
||||
$newParentId = $this->getParentId($targetPath);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue