summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/files/view.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 58dfc73dcf3..93d2c15c50b 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1109,8 +1109,9 @@ class View {
if ($results) {
foreach ($results as $result) {
$internalPath = $result['path'];
- $result['path'] = $relativeMountPoint . $result['path'];
- $files[] = new FileInfo($mountPoint . $result['path'], $storage, $internalPath, $result);
+ $result['path'] = rtrim($relativeMountPoint . $result['path'], '/');
+ $path = rtrim($mountPoint . $internalPath, '/');
+ $files[] = new FileInfo($path, $storage, $internalPath, $result);
}
}
}