]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7894: Event header ARRAY:: data -- use strcmp to ensure data begins with ARRAY...
authorMichael Giagnocavo <mgg@giagnocavo.net>
Mon, 27 Jul 2015 01:56:32 +0000 (19:56 -0600)
committerMichael Giagnocavo <mgg@giagnocavo.net>
Mon, 27 Jul 2015 01:56:32 +0000 (19:56 -0600)
src/switch_event.c

index 7eb574f9604bc54d71ccde827b2208304495f28f..ae73436306f39a1dc855f92ec7539313cedb5c9c 100644 (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;