remove trailing slash from path

This commit is contained in:
Bjoern Schiessle 2014-08-05 20:34:32 +02:00
parent f451173817
commit 48c57b80e3
1 changed files with 2 additions and 1 deletions

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, '/');
}
}
}