aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/share.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-26 16:20:10 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-26 16:20:10 -0500
commit1910057900476c5b7509a456a460d70664c01610 (patch)
tree8bb99b740ba02f963799a0fdb71c76589c209b28 /lib/public/share.php
parentb4515d874e5259647886d148db902f9753bbeb81 (diff)
downloadnextcloud-server-1910057900476c5b7509a456a460d70664c01610.tar.gz
nextcloud-server-1910057900476c5b7509a456a460d70664c01610.zip
Fix shared statuses inside folders
Diffstat (limited to 'lib/public/share.php')
-rw-r--r--lib/public/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 8981de1b508..2775a07f133 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -739,7 +739,8 @@ class Share {
if (isset($row['parent'])) {
$row['path'] = '/Shared/'.basename($row['path']);
} else {
- $row['path'] = substr($row['path'], $root);
+ // Strip 'files' from path
+ $row['path'] = substr($row['path'], 5);
}
}
if (isset($row['expiration'])) {