Merge pull request #10191 from owncloud/sharing_rm_trailing_slash

[sharing] remove trailing slash
This commit is contained in:
Morris Jobke 2014-08-05 23:13:35 +02:00
commit 9fb79c86f0
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,6 @@ class Api {
$share['isPreviewAvailable'] = true;
}
}
$newShares[] = $share;
}
return new \OC_OCS_Result($shares);
}

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