diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-02 20:08:23 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-05 12:42:47 +0100 |
commit | b88aeb21660e68703053e1e51f6c8c2fcb618be9 (patch) | |
tree | 335767d54d0c0e1afb0ed028edc0011e221f3bd9 /lib | |
parent | 976e5e35f7696e2b2c5abc0d9ade4aa8601e13d6 (diff) | |
download | nextcloud-server-b88aeb21660e68703053e1e51f6c8c2fcb618be9.tar.gz nextcloud-server-b88aeb21660e68703053e1e51f6c8c2fcb618be9.zip |
Do not try to get the jailed path if we can't find the id
Fixes #8047
If we can't find the file by id there we should just return null instead
of trying to get the jailed path of null.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Cache/Wrapper/CacheJail.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php index 357851bedd5..1ad00ba44c5 100644 --- a/lib/private/Files/Cache/Wrapper/CacheJail.php +++ b/lib/private/Files/Cache/Wrapper/CacheJail.php @@ -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); } |