diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-29 16:28:42 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-29 16:29:35 +0100 |
commit | 80d2371f971a9c35bee5bebb272d73ad0fb7fc83 (patch) | |
tree | af625eba0d8afc5c1b2a646610466fd234ef113b /lib/private/connector/sabre/file.php | |
parent | 1dc931b778a22a0105065f2122bb6de4dd7361d6 (diff) | |
download | nextcloud-server-80d2371f971a9c35bee5bebb272d73ad0fb7fc83.tar.gz nextcloud-server-80d2371f971a9c35bee5bebb272d73ad0fb7fc83.zip |
Fixed touch after chunk assembling
Fixed touch after chunk assembling which was using the wrong path,
resulting in the creation of an extra file.
Fixes #6007
Diffstat (limited to 'lib/private/connector/sabre/file.php')
-rw-r--r-- | lib/private/connector/sabre/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php index 26b5d200bde..295575f0af6 100644 --- a/lib/private/connector/sabre/file.php +++ b/lib/private/connector/sabre/file.php @@ -249,7 +249,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D // allow sync clients to send the mtime along in a header $mtime = OC_Request::hasModificationTime(); if ($mtime !== false) { - if($fs->touch($this->path, $mtime)) { + if($fs->touch($targetPath, $mtime)) { header('X-OC-MTime: accepted'); } } |