Merge pull request #445 from saschanos/dev-json-check

check for valid json input
pull/457/head
Mike Cao 4 years ago committed by GitHub
commit aa55b97093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -190,7 +190,7 @@ class Request {
$body = $this->getBody(); $body = $this->getBody();
if ($body != '') { if ($body != '') {
$data = json_decode($body, true); $data = json_decode($body, true);
if ($data != null) { if (is_array($data)) {
$this->data->setData($data); $this->data->setData($data);
} }
} }

Loading…
Cancel
Save