mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-15 03:28:41 +00:00
Fix edge cases for request types
This commit is contained in:
parent
2a01540348
commit
3e2c676530
|
|
@ -146,7 +146,7 @@ final class Request extends RequestAbstract
|
|||
return;
|
||||
}
|
||||
|
||||
$json = \json_decode($input === false || empty($input) ? '' : $input, true);
|
||||
$json = \json_decode($input, true);
|
||||
if ($json === false || $json === null) {
|
||||
throw new \Exception('Is not valid json ' . $input);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user