mirror of
https://github.com/nextcloud/server.git
synced 2026-07-12 11:06:50 -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
cf73e9f638
commit
02073fd5ed
1 changed files with 5 additions and 1 deletions
|
|
@ -134,7 +134,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