mirror of
https://github.com/nextcloud/server.git
synced 2026-07-16 23:12:04 -04:00
Merge pull request #61844 from nextcloud/backport/61841/stable32
[stable32] fix(Sharing): Don't break cache entry by setting path to null
This commit is contained in:
commit
6b7872dbf2
1 changed files with 5 additions and 1 deletions
|
|
@ -124,7 +124,11 @@ class Cache extends CacheJail {
|
|||
protected function formatCacheEntry($entry, $path = null) {
|
||||
if (is_null($path)) {
|
||||
$path = $entry['path'] ?? '';
|
||||
$entry['path'] = $this->getJailedPath($path);
|
||||
$jailedPath = $this->getJailedPath($path);
|
||||
if ($jailedPath === null) {
|
||||
return false;
|
||||
}
|
||||
$entry['path'] = $jailedPath;
|
||||
} else {
|
||||
$entry['path'] = $path;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue