Merge pull request #39731 from nextcloud/backport/39698/stable25

[stable25] Catch more invalid cache source storage paths
This commit is contained in:
Arthur Schiwon 2023-09-05 17:45:25 +02:00 committed by GitHub
commit e004f8099a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -660,7 +660,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);
}