From f8dd98523c168820279021a783522511b7822565 Mon Sep 17 00:00:00 2001 From: Sascha Nos Date: Mon, 7 Jun 2021 14:51:01 +0200 Subject: [PATCH] check for valid json input --- flight/net/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/net/Request.php b/flight/net/Request.php index 19a8331..8e8a963 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -190,7 +190,7 @@ class Request { $body = $this->getBody(); if ($body != '') { $data = json_decode($body, true); - if ($data != null) { + if (is_array($data)) { $this->data->setData($data); } }