diff options
Diffstat (limited to 'lib/private/files/view.php')
-rw-r--r-- | lib/private/files/view.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 2a28e6fce88..1037056b0fb 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -670,6 +670,7 @@ class View { $source = fopen($tmpFile, 'r'); if ($source) { $this->file_put_contents($path, $source); + fclose($source); unlink($tmpFile); return true; } else { @@ -1182,6 +1183,7 @@ class View { * @return string|null */ public function getPath($id) { + $id = (int) $id; $manager = Filesystem::getMountManager(); $mounts = $manager->findIn($this->fakeRoot); $mounts[] = $manager->find($this->fakeRoot); |