Skip to content

Commit

Permalink
Merge pull request #8196 from nextcloud/8160_12
Browse files Browse the repository at this point in the history
[stable 12] Do not try to get the jailed path if we can't find the id
  • Loading branch information
MorrisJobke authored Feb 6, 2018
2 parents 3df8021 + 10efe52 commit 7e72a26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/private/Files/Cache/Wrapper/CacheJail.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ public function getIncomplete() {
*/
public function getPathById($id) {
$path = $this->getCache()->getPathById($id);
if ($path === null) {
return null;
}

return $this->getJailedPath($path);
}

Expand Down

0 comments on commit 7e72a26

Please sign in to comment.