mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
relay/api: check that "request" field is a string in JSON received (websocket connection)
This commit is contained in:
@@ -682,6 +682,9 @@ relay_api_protocol_recv_json (struct t_relay_client *client, const char *json)
|
||||
if (!json_request)
|
||||
goto error;
|
||||
|
||||
if (!cJSON_IsString (json_request))
|
||||
goto error;
|
||||
|
||||
if (!relay_http_parse_method_path (client->http_req,
|
||||
cJSON_GetStringValue (json_request)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user