mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
missing xsl code, don't let stats get processed without having
any XML entities encoded. Apply to both the name and value just for consistency svn path=/icecast/branches/kh/icecast/; revision=7478
This commit is contained in:
parent
43a8ba3606
commit
5e96807d90
16
src/stats.c
16
src/stats.c
@ -739,16 +739,16 @@ void stats_get_xml(xmlDocPtr *doc)
|
||||
|
||||
event = _get_event_from_queue(&queue);
|
||||
while (event) {
|
||||
if (event->source == NULL) {
|
||||
xmlChar *value = xmlEncodeEntitiesReentrant (doc, event->value);
|
||||
xmlNewChild(node, NULL, event->name, value);
|
||||
xmlFree (value);
|
||||
} else {
|
||||
xmlChar *value = xmlEncodeEntitiesReentrant (doc, event->value);
|
||||
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, value);
|
||||
xmlFree (value);
|
||||
}
|
||||
xmlNewChild(srcnode, NULL, name, value);
|
||||
xmlFree (value);
|
||||
xmlFree (name);
|
||||
|
||||
_free_event(event);
|
||||
event = _get_event_from_queue(&queue);
|
||||
|
Loading…
Reference in New Issue
Block a user