[xiph-commits] r7447 - icecast/branches/kh/icecast/src

karl at motherfish-iii.xiph.org karl
Thu Aug 5 19:06:34 PDT 2004


Author: karl
Date: Thu Aug  5 19:06:34 2004
New Revision: 7447

Modified:
icecast/branches/kh/icecast/src/stats.c
Log:
when building xsl pages for clients, encode the stats values


Modified: icecast/branches/kh/icecast/src/stats.c
===================================================================
--- icecast/branches/kh/icecast/src/stats.c	2004-08-01 12:42:55 UTC (rev 7446)
+++ icecast/branches/kh/icecast/src/stats.c	2004-08-01 13:36:35 UTC (rev 7447)
@@ -740,10 +740,14 @@
event = _get_event_from_queue(&queue);
while (event) {
if (event->source == NULL) {
-            xmlNewChild(node, NULL, event->name, event->value);
+            xmlChar *value = xmlEncodeEntitiesReentrant (doc, event->value);
+            xmlNewChild(node, NULL, event->name, value);
+            xmlFree (value);
} else {
+            xmlChar *value = xmlEncodeEntitiesReentrant (doc, event->value);
srcnode = _find_xml_node(event->source, &src_nodes, node);
-            xmlNewChild(srcnode, NULL, event->name, event->value);
+            xmlNewChild(srcnode, NULL, event->name, value);
+            xmlFree (value);
}

_free_event(event);



More information about the commits mailing list