summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-27 23:50:44 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-06 09:56:00 +0200
commit9a48e8725321eb4f282ee49f14af01efad0471ef (patch)
treedae5b507b96a8ee94d0a4862e2e1da912f83a42e /apps
parent0ce07bb6c4235d6fd735dbc870aad9ce7850736d (diff)
downloadnextcloud-server-9a48e8725321eb4f282ee49f14af01efad0471ef.tar.gz
nextcloud-server-9a48e8725321eb4f282ee49f14af01efad0471ef.zip
make sure that we have a path relative to data/user/files to work with
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/sharedstorage.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index 1456ad18888..c98cde0a8e9 100644
--- a/apps/files_sharing/lib/sharedstorage.php
+++ b/apps/files_sharing/lib/sharedstorage.php
@@ -289,8 +289,9 @@ class Shared extends \OC\Files\Storage\Common {
public function rename($path1, $path2) {
- $relPath1 = \OCA\Files_Sharing\Helper::stripUserFilesPath($path1);
- $relPath2 = \OCA\Files_Sharing\Helper::stripUserFilesPath($path2);
+ // we need the paths relative to data/user/files
+ $relPath1 = $this->getMountPoint() . '/' . $path1;
+ $relPath2 = $this->getMountPoint() . '/' . $path2;
if ($this->isUpdatable('')) {