|
|
|
|
@ -80,7 +80,7 @@ class ObjectTree extends \Sabre\DAV\Tree { |
|
|
|
|
private function resolveChunkFile($path) { |
|
|
|
|
if (isset($_SERVER['HTTP_OC_CHUNKED'])) { |
|
|
|
|
// resolve to real file name to find the proper node |
|
|
|
|
list($dir, $name) = \Sabre\HTTP\URLUtil::splitPath($path); |
|
|
|
|
list($dir, $name) = \Sabre\Uri\split($path); |
|
|
|
|
if ($dir == '/' || $dir == '.') { |
|
|
|
|
$dir = ''; |
|
|
|
|
} |
|
|
|
|
@ -221,7 +221,7 @@ class ObjectTree extends \Sabre\DAV\Tree { |
|
|
|
|
// this will trigger existence check |
|
|
|
|
$this->getNodeForPath($source); |
|
|
|
|
|
|
|
|
|
list($destinationDir, $destinationName) = \Sabre\HTTP\URLUtil::splitPath($destination); |
|
|
|
|
list($destinationDir, $destinationName) = \Sabre\Uri\split($destination); |
|
|
|
|
try { |
|
|
|
|
$this->fileView->verifyPath($destinationDir, $destinationName); |
|
|
|
|
} catch (\OCP\Files\InvalidPathException $ex) { |
|
|
|
|
@ -238,7 +238,7 @@ class ObjectTree extends \Sabre\DAV\Tree { |
|
|
|
|
throw new FileLocked($e->getMessage(), $e->getCode(), $e); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
list($destinationDir,) = \Sabre\HTTP\URLUtil::splitPath($destination); |
|
|
|
|
list($destinationDir,) = \Sabre\Uri\split($destination); |
|
|
|
|
$this->markDirty($destinationDir); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|