Skip to content
Snippets Groups Projects
Unverified Commit e5dc0b7a authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #26271 from nextcloud/backport/26270/stable21

[stable21] Catch invalid cache source storage path
parents ef273fef e9fafce7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment