From 9a48e8725321eb4f282ee49f14af01efad0471ef Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 27 May 2014 23:50:44 +0200 Subject: [PATCH] make sure that we have a path relative to data/user/files to work with --- apps/files_sharing/lib/sharedstorage.php | 5 +++-- 1 file 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('')) { -- 2.39.5