mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +00:00
handle null json
This commit is contained in:
parent
cab2628062
commit
97ad384589
|
|
@ -134,7 +134,7 @@ final class HttpRequest extends RequestAbstract
|
||||||
// Tested but coverage doesn't show up
|
// Tested but coverage doesn't show up
|
||||||
$input = \file_get_contents('php://input');
|
$input = \file_get_contents('php://input');
|
||||||
|
|
||||||
if ($input === false || empty($input)) {
|
if ($input === false || empty($input) || $input === 'null') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user