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>
This commit is contained in:
parent
976e5e35f7
commit
b88aeb2166
|
@ -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 New Issue