mod_lcr - FS-3284 --resolve - fix malformed XML when has embedded %s

This commit is contained in:
Rupa Schomaker 2011-05-09 11:19:58 -05:00
parent 3dca2ebb00
commit 5fa9619fe7
1 changed files with 1 additions and 1 deletions

View 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);
}