mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 02:03:39 +00:00
FS-7894: Event header ARRAY:: data -- use strcmp to ensure data begins with ARRAY:: instead of substring search
This commit is contained in:
parent
75e46cedb8
commit
17241c8bcd
@ -1053,7 +1053,7 @@ static switch_status_t switch_event_base_add_header(switch_event_t *event, switc
|
|||||||
switch_event_del_header(event, header_name);
|
switch_event_del_header(event, header_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr(data, "ARRAY::")) {
|
if (!strncmp(data, "ARRAY::", 7)) {
|
||||||
switch_event_add_array(event, header_name, data);
|
switch_event_add_array(event, header_name, data);
|
||||||
FREE(data);
|
FREE(data);
|
||||||
goto end;
|
goto end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user