Commit dac2723d authored by Karl Heyes's avatar Karl Heyes

encode any xml entities in the stats before applying them to the

xsl pages

svn path=/icecast/trunk/icecast/; revision=7494
parent ebecd7cb
......@@ -738,13 +738,18 @@ void stats_get_xml(xmlDocPtr *doc)
event = _get_event_from_queue(&queue);
while (event) {
if (event->source == NULL) {
xmlNewChild(node, NULL, event->name, event->value);
} else {
while (event)
{
xmlChar *name, *value;
name = xmlEncodeEntitiesReentrant (*doc, event->name);
value = xmlEncodeEntitiesReentrant (*doc, event->value);
srcnode = node;
if (event->source) {
srcnode = _find_xml_node(event->source, &src_nodes, node);
xmlNewChild(srcnode, NULL, event->name, event->value);
}
xmlNewChild(srcnode, NULL, name, value);
xmlFree (value);
xmlFree (name);
_free_event(event);
event = _get_event_from_queue(&queue);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment