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
79e81c15c5
commit
53a780e31c
1 changed files with 4 additions and 0 deletions
|
@ -312,6 +312,10 @@ class CacheJail extends CacheWrapper {
|
||||||
*/
|
*/
|
||||||
public function getPathById($id) {
|
public function getPathById($id) {
|
||||||
$path = $this->getCache()->getPathById($id);
|
$path = $this->getCache()->getPathById($id);
|
||||||
|
if ($path === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return $this->getJailedPath($path);
|
return $this->getJailedPath($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue