From: Rupa Schomaker Date: Mon, 9 May 2011 16:19:58 +0000 (-0500) Subject: mod_lcr - FS-3284 --resolve - fix malformed XML when has embedded %s X-Git-Tag: v1.2-rc1~118^2~6^2~35^2~22^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fa9619fe70e30e75fb24cfe87570b63d7d65071;p=thirdparty%2Ffreeswitch.git mod_lcr - FS-3284 --resolve - fix malformed XML when has embedded %s --- diff --git a/src/mod/applications/mod_lcr/mod_lcr.c b/src/mod/applications/mod_lcr/mod_lcr.c index f475671ef1..c0d99dfc35 100644 --- a/src/mod/applications/mod_lcr/mod_lcr.c +++ b/src/mod/applications/mod_lcr/mod_lcr.c @@ -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); }