mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
make sure that we have a path relative to data/user/files to work with
This commit is contained in:
parent
0ce07bb6c4
commit
9a48e87253
1 changed files with 3 additions and 2 deletions
|
|
@ -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('')) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue