mirror of https://git.48k.eu/ogserver
#915 Validate POST /refresh REST API parameters
This patch ensures that all required parameters are sent in the request.master
parent
bc1b958ceb
commit
93028bd055
|
@ -3885,6 +3885,9 @@ static int og_cmd_refresh(json_t *element, struct og_msg_params *params)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!og_msg_params_validate(params, OG_REST_PARAM_ADDR))
|
||||||
|
return -1;
|
||||||
|
|
||||||
return og_cmd_legacy_send(params, "Actualizar", CLIENTE_APAGADO);
|
return og_cmd_legacy_send(params, "Actualizar", CLIENTE_APAGADO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue