]> source.dussan.org Git - nextcloud-server.git/commitdiff
the path for reassembling was created the wrong way
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 7 Oct 2013 15:34:21 +0000 (17:34 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 7 Oct 2013 15:34:21 +0000 (17:34 +0200)
lib/private/connector/sabre/file.php

index 8ffec371e3f4e94a2589fc300a3e88105129c7bb..12d7585884ede391cd75e63e2f13ba8d7ecbefee 100644 (file)
@@ -58,7 +58,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
 
                // chunked handling
                if (isset($_SERVER['HTTP_OC_CHUNKED'])) {
-                       list(, $name) = \Sabre_DAV_URLUtil::splitPath($this->path);
+                       list($path, $name) = \Sabre_DAV_URLUtil::splitPath($this->path);
 
                        $info = OC_FileChunking::decodeName($name);
                        if (empty($info)) {
@@ -67,7 +67,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
                        $chunk_handler = new OC_FileChunking($info);
                        $chunk_handler->store($info['index'], $data);
                        if ($chunk_handler->isComplete()) {
-                               $newPath = $this->path . '/' . $info['name'];
+                               $newPath = $path . '/' . $info['name'];
                                $chunk_handler->file_assemble($newPath);
                                return $this->getETagPropertyForPath($newPath);
                        }