mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #39731 from nextcloud/backport/39698/stable25
[stable25] Catch more invalid cache source storage paths
This commit is contained in:
commit
e004f8099a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue