diff options
-rw-r--r-- | filter/ChangeLog | 7 | ||||
-rw-r--r-- | filter/filter-rule.c | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 1c4e3cd3b3..1e713d561e 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,10 @@ +2008-07-03 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #243201 + + * filter-rule.c: (xml_encode): Escape rule title so that can contain + also XML entities in the file. + 2008-06-16 Maciej Piechotka <uzytkownik2@gmal.com> ** Fix for bug #526262 diff --git a/filter/filter-rule.c b/filter/filter-rule.c index 6e92de9aba..e6e59baeac 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -321,9 +321,13 @@ xml_encode (FilterRule *fr) } if (fr->name) { + char *escaped = g_markup_escape_text (fr->name, -1); + work = xmlNewNode (NULL, (const unsigned char *)"title"); - xmlNodeSetContent (work, (unsigned char *)fr->name); + xmlNodeSetContent (work, (unsigned char *)escaped); xmlAddChild (node, work); + + g_free (escaped); } set = xmlNewNode (NULL, (const unsigned char *)"partset"); |