Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-05 22:34:32 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-06 17:19:10 +0400
commit079390c037fc033bad7159f944fbb23175e34ee8 (patch)
treee0e7133ba5561e461e10074ae3bf5d6cc860e485 /lib/private/share
parent8a038eeeefe541f0baf32ad0eae34570332361a7 (diff)
remove trailing slash from path
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 7a1e1298a93..daed42440d7 100644
--- a/lib/private/share/share.php
+++ b/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, '/');
}
}
}