encode entities. fixes bug #46677.

2004-06-21  Jeffrey Stedfast  <fejj@novell.com>

	* filter-input.c (xml_encode): encode entities. fixes bug #46677.

svn path=/trunk/; revision=26443
This commit is contained in:
Jeffrey Stedfast
2004-06-21 18:53:07 +00:00
committed by Jeffrey Stedfast
parent 82666876f8
commit 0730f269f0
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-06-21 Jeffrey Stedfast <fejj@novell.com>
* filter-input.c (xml_encode): encode entities. fixes bug #46677.
2004-06-18 Jeffrey Stedfast <fejj@ximian.com>
* filter-errors.xml.h: Re-added - THIS IS NOT TO BE REMOVED!!!!

View File

@ -252,7 +252,11 @@ xml_encode (FilterElement *fe)
char *str = l->data;
cur = xmlNewChild (value, NULL, type, NULL);
str = xmlEncodeEntitiesReentrant (NULL, str);
xmlNodeSetContent (cur, str);
xmlFree (str);
l = l->next;
}