Browse Source
Merge pull request #7523 from nextcloud/check_empty_content_length
Also check for empty content length
pull/7553/head
Morris Jobke
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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 |
|
|
|
) { |
|
|
|
|