mirror of https://git.48k.eu/ogserver
#915 Validate POST /shell/output REST API parameters
This patch ensures that all required parameters are sent in the request.master
parent
b403c7ae6c
commit
61059e1b2e
|
@ -3729,6 +3729,9 @@ static int og_cmd_run_get(json_t *element, struct og_msg_params *params,
|
|||
return err;
|
||||
}
|
||||
|
||||
if (!og_msg_params_validate(params, OG_REST_PARAM_ADDR))
|
||||
return -1;
|
||||
|
||||
array = json_array();
|
||||
if (!array)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue