Browse Source

remove trailing slash from path

tags/v8.0.0alpha1
Bjoern Schiessle 9 years ago
parent
commit
48c57b80e3
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/private/share/share.php

+ 2
- 1
lib/private/share/share.php View File

@@ -1388,7 +1388,8 @@ class Share extends \OC\Share\Constants {
}
if ($mounts[$row['storage']]) {
$path = $mounts[$row['storage']]->getMountPoint().$row['path'];
$row['path'] = substr($path, $root);
$relPath = substr($path, $root); // path relative to data/user
$row['path'] = rtrim($relPath, '/');
}
}
}

Loading…
Cancel
Save