]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_lcr - FS-3284 --resolve - fix malformed XML when has embedded %s
authorRupa Schomaker <rupa@rupa.com>
Mon, 9 May 2011 16:19:58 +0000 (11:19 -0500)
committerRupa Schomaker <rupa@rupa.com>
Mon, 9 May 2011 16:21:04 +0000 (11:21 -0500)
src/mod/applications/mod_lcr/mod_lcr.c

index f475671ef15a433ba3703d512fe083edc8421656..c0d99dfc35f09a23c5b0db0aeb635ae52b7ec437 100644 (file)
@@ -1825,7 +1825,7 @@ SWITCH_STANDARD_API(dialplan_lcr_function)
                                if (as_xml) {
                                        event_xml = switch_event_xmlize(current->fields, SWITCH_VA_NONE);
                                        event_str = switch_xml_toxml(event_xml, SWITCH_FALSE);
-                                       stream->write_function(stream, event_str);
+                                       stream->write_function(stream, "%s", event_str);
                                        switch_xml_free(event_xml);
                                        switch_safe_free(event_str);
                                }