From: Michael Giagnocavo Date: Mon, 27 Jul 2015 01:56:32 +0000 (-0600) Subject: FS-7894: Event header ARRAY:: data -- use strcmp to ensure data begins with ARRAY... X-Git-Tag: v1.6.2~211^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17241c8bcd1e26cd006a56378a0119275612b5c3;p=thirdparty%2Ffreeswitch.git FS-7894: Event header ARRAY:: data -- use strcmp to ensure data begins with ARRAY:: instead of substring search --- diff --git a/src/switch_event.c b/src/switch_event.c index 7eb574f960..ae73436306 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -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;