mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Catch invalid cache source storage path
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
c555e86e63
commit
dfcf6ad106
1 changed files with 4 additions and 0 deletions
|
|
@ -627,6 +627,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