summaryrefslogtreecommitdiffstats
path: root/lib/private/files/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/view.php')
-rw-r--r--lib/private/files/view.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 2a28e6fce88..6749fcd55d2 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1182,6 +1182,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);