Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
dac2723d
Commit
dac2723d
authored
Aug 07, 2004
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
encode any xml entities in the stats before applying them to the
xsl pages svn path=/icecast/trunk/icecast/; revision=7494
parent
ebecd7cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/stats.c
src/stats.c
+10
-5
No files found.
src/stats.c
View file @
dac2723d
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment