diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-27 23:50:44 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:56:00 +0200 |
commit | 9a48e8725321eb4f282ee49f14af01efad0471ef (patch) | |
tree | dae5b507b96a8ee94d0a4862e2e1da912f83a42e /apps | |
parent | 0ce07bb6c4235d6fd735dbc870aad9ce7850736d (diff) | |
download | nextcloud-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.php | 5 |
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('')) { |