mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 16:19:06 -04:00
Fix POST decoding
This commit is contained in:
parent
965ce5719f
commit
8a018d7a59
1 changed files with 2 additions and 2 deletions
|
|
@ -70,8 +70,8 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
|||
// transformed by PHP, 'application/json' must be decoded manually.
|
||||
if ($this->method === 'POST'
|
||||
&& strpos($this->getHeader('Content-Type'), 'application/json') !== false
|
||||
&& is_string($this->items['post'])) {
|
||||
$this->items['params'] = $this->items['post'] = json_decode($this->items['post'], true);
|
||||
) {
|
||||
$this->items['params'] = $this->items['post'] = json_decode(file_get_contents('php://input'), true);
|
||||
}
|
||||
|
||||
$this->items['parameters'] = array_merge(
|
||||
|
|
|
|||
Loading…
Reference in a new issue