mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 13:01:34 -04:00
fix(Sharing): Don't break cache entry by setting path to null
see #58676 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
6291714a72
commit
3d491ef786
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