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
3df8021406
commit
10efe528ed
|
@ -311,6 +311,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 New Issue