diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-21 01:20:19 -0800 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-21 01:20:19 -0800 |
commit | 19af45c7d14f1311b5b381e407abda7cb4f649a5 (patch) | |
tree | 576c024c4bc17276f0fec602b9ebd82052c551c8 | |
parent | c2ccf4a6b3398ffe137f9eafdda55cc695ad0722 (diff) | |
parent | e26500045fd9f0f102398fabd5e44497618f8b03 (diff) | |
download | nextcloud-server-19af45c7d14f1311b5b381e407abda7cb4f649a5.tar.gz nextcloud-server-19af45c7d14f1311b5b381e407abda7cb4f649a5.zip |
Merge pull request #5972 from owncloud/extstorage-webdav-moveoperationfix
Fixed move operation to pass the whole URL as expected
-rw-r--r-- | apps/files_external/lib/webdav.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php index 66920fc9f64..9ee7f555285 100644 --- a/apps/files_external/lib/webdav.php +++ b/apps/files_external/lib/webdav.php @@ -268,7 +268,7 @@ class DAV extends \OC\Files\Storage\Common{ public function rename($path1, $path2) { $this->init(); $path1=$this->cleanPath($path1); - $path2=$this->root.$this->cleanPath($path2); + $path2=$this->createBaseUri().$this->cleanPath($path2); try { $this->client->request('MOVE', $path1, null, array('Destination'=>$path2)); return true; @@ -280,7 +280,7 @@ class DAV extends \OC\Files\Storage\Common{ public function copy($path1, $path2) { $this->init(); $path1=$this->cleanPath($path1); - $path2=$this->root.$this->cleanPath($path2); + $path2=$this->createBaseUri().$this->cleanPath($path2); try { $this->client->request('COPY', $path1, null, array('Destination'=>$path2)); return true; |