mirror of https://git.48k.eu/ogserver
#915 Validate POST /run/schedule REST API parameters
This patch ensures that all required parameters are sent in the request.master
parent
4f785531e6
commit
6066b32603
|
@ -4280,6 +4280,9 @@ static int og_cmd_run_schedule(json_t *element, struct og_msg_params *params)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!og_msg_params_validate(params, OG_REST_PARAM_ADDR))
|
||||||
|
return -1;
|
||||||
|
|
||||||
og_cmd_legacy_send(params, "EjecutaComandosPendientes", CLIENTE_OCUPADO);
|
og_cmd_legacy_send(params, "EjecutaComandosPendientes", CLIENTE_OCUPADO);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue