mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #8160 from nextcloud/fix_8047
Do not try to get the jailed path if we can't find the id
This commit is contained in:
commit
30d6fd7f01
1 changed files with 4 additions and 0 deletions
|
|
@ -312,6 +312,10 @@ class CacheJail extends CacheWrapper {
|
|||
*/
|
||||
public function getPathById($id) {
|
||||
$path = $this->getCache()->getPathById($id);
|
||||
if ($path === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->getJailedPath($path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue