1
0
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:
Sébastien Helleu
2024-03-10 10:16:31 +01:00
parent 4f9bcc73ca
commit 59c977ddc9
@@ -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)))
{