diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-10-03 01:43:33 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-10-03 01:43:33 +0200 |
commit | 8a018d7a59047ef45bfa71b4f07db11a504085b8 (patch) | |
tree | 437e0bff0588fb42e86f9f6e48b83a64922ae5f5 /lib | |
parent | 965ce5719f1e936c731871360c89e459e9a20bd9 (diff) | |
download | nextcloud-server-8a018d7a59047ef45bfa71b4f07db11a504085b8.tar.gz nextcloud-server-8a018d7a59047ef45bfa71b4f07db11a504085b8.zip |
Fix POST decoding
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/http/request.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php index b6832735fac..b45ac2f0097 100644 --- a/lib/private/appframework/http/request.php +++ b/lib/private/appframework/http/request.php @@ -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( |