diff options
author | Frank Karlitschek <frank@owncloud.org> | 2013-10-05 02:25:45 -0700 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2013-10-05 02:25:45 -0700 |
commit | a82211220ca8a39ae0fc517461062f2bda4acc9b (patch) | |
tree | 2a8bad9bb2afd1099560b3d54a7b803d8923ac3f /lib/private | |
parent | 4bce2f8b85dbbe8fb25dc64b2bc049342d2d1ae7 (diff) | |
parent | 414b2eb4b672ef5d49985de27edca3e5bb54d5d6 (diff) | |
download | nextcloud-server-a82211220ca8a39ae0fc517461062f2bda4acc9b.tar.gz nextcloud-server-a82211220ca8a39ae0fc517461062f2bda4acc9b.zip |
Merge pull request #5125 from owncloud/fixing-5122-master
upload abortion detection only for PUT
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/connector/sabre/aborteduploaddetectionplugin.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/aborteduploaddetectionplugin.php b/lib/private/connector/sabre/aborteduploaddetectionplugin.php index 15dca3a6809..10cca647e8d 100644 --- a/lib/private/connector/sabre/aborteduploaddetectionplugin.php +++ b/lib/private/connector/sabre/aborteduploaddetectionplugin.php @@ -53,6 +53,12 @@ class OC_Connector_Sabre_AbortedUploadDetectionPlugin extends Sabre_DAV_ServerPl */ public function verifyContentLength($filePath, Sabre_DAV_INode $node = null) { + // we should only react on PUT which is used for upload + // e.g. with LOCK this will not work, but LOCK uses createFile() as well + if ($this->server->httpRequest->getMethod() !== 'PUT' ) { + return; + } + // ownCloud chunked upload will be handled in its own plugin $chunkHeader = $this->server->httpRequest->getHeader('OC-Chunked'); if ($chunkHeader) { |