diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-14 21:48:59 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-14 21:48:59 +0100 |
commit | ca70694502301a60d615d1bb9dff304a41c86a51 (patch) | |
tree | 244c1dc6f737933acbcc38985d9c94ab1e0dff12 /lib/private/AppFramework/Http | |
parent | b19b1379699cf7790a13575f27a05b2f6db14f6a (diff) | |
download | nextcloud-server-ca70694502301a60d615d1bb9dff304a41c86a51.tar.gz nextcloud-server-ca70694502301a60d615d1bb9dff304a41c86a51.zip |
Also check for empty content lenth
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/AppFramework/Http')
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index 072dd9f172f..77ecb02165b 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -406,6 +406,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { if ($this->method === 'PUT' && $this->getHeader('Content-Length') !== 0 && $this->getHeader('Content-Length') !== null + && $this->getHeader('Content-Length') !== '' && strpos($this->getHeader('Content-Type'), 'application/x-www-form-urlencoded') === false && strpos($this->getHeader('Content-Type'), 'application/json') === false ) { |