remove trailing slash from path

remotes/origin/fix-10825
Bjoern Schiessle 11 years ago
parent f451173817
commit 48c57b80e3
  1. 3
      lib/private/share/share.php

@ -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