summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-09-12 09:42:32 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-12 09:42:32 +0200
commit27cd30aa9491995a111bd33195bc8e20638f8467 (patch)
tree414153ba25b190399e8abd67af11bd7a633975cf /lib
parent1d639161b654c3efef7c9ae28511cb6d8b3529c4 (diff)
downloadnextcloud-server-27cd30aa9491995a111bd33195bc8e20638f8467.tar.gz
nextcloud-server-27cd30aa9491995a111bd33195bc8e20638f8467.zip
content size checks are not valid for LOCK
Diffstat (limited to 'lib')
-rw-r--r--lib/private/connector/sabre/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index 5333583e78d..246749903b3 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -105,7 +105,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements \Sabre\
// if content length is sent by client:
// double check if the file was fully received
// compare expected and actual size
- if (isset($_SERVER['CONTENT_LENGTH'])) {
+ if (isset($_SERVER['CONTENT_LENGTH']) && $_SERVER['REQUEST_METHOD'] !== 'LOCK') {
$expected = $_SERVER['CONTENT_LENGTH'];
$actual = $this->fileView->filesize($partFilePath);
if ($actual != $expected) {