Merge pull request #39726 from nextcloud/backport/39698/stable26

[stable26] Catch more invalid cache source storage paths
This commit is contained in:
Arthur Schiwon 2023-09-05 18:59:48 +02:00 committed by GitHub
commit f7d890cd66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -663,7 +663,7 @@ class Cache implements ICache {
$targetPath = $this->normalize($targetPath);
$sourceData = $sourceCache->get($sourcePath);
if ($sourceData === false) {
if (!$sourceData) {
throw new \Exception('Invalid source storage path: ' . $sourcePath);
}