owncloud/core — pull request #10862 by chli1 (2014-09-04 12:10:58+00:00)
Title: fix BadRequest error if CONTENT_LENGTH not set

fixes issue #10843
If client does not send content length header on webdav upload (e.g. because the content comes from a stream and its length is not predictable) the put() method should not try to compare the content length value with the actually amount of received data, because this will always fail and results in a BadRequest exception. So the check will only be performed if $_SERVER['CONTENT_LENGTH'] is set.

This contribution is MIT licensed.