FS-7894: Event header ARRAY:: data -- use strcmp to ensure data begins with ARRAY:: instead of substring search

This commit is contained in:
Michael Giagnocavo 2015-07-26 19:56:32 -06:00
parent 75e46cedb8
commit 17241c8bcd
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
if (strstr(data, "ARRAY::")) {
if (!strncmp(data, "ARRAY::", 7)) {
switch_event_add_array(event, header_name, data);
FREE(data);
goto end;