aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/ChangeLog8
-rw-r--r--filter/filter-option.c2
-rw-r--r--filter/filter-part.c2
3 files changed, 10 insertions, 2 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 5eb7224d86..1c4e3cd3b3 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,11 @@
+2008-06-16 Maciej Piechotka <uzytkownik2@gmal.com>
+
+ ** Fix for bug #526262
+
+ * filter-part.c: (xml_create):
+ * filter-part.c: (filter_part_xml_create):
+ Handle _title element in analogical way as title
+
2008-06-19 Milan Crha <mcrha@redhat.com>
** Fix for bug #382783
diff --git a/filter/filter-option.c b/filter/filter-option.c
index 0814c0a536..5c4283b889 100644
--- a/filter/filter-option.c
+++ b/filter/filter-option.c
@@ -233,7 +233,7 @@ xml_create (FilterElement *fe, xmlNodePtr node)
value = (char *)xmlGetProp (n, (const unsigned char *)"value");
work = n->children;
while (work) {
- if (!strcmp ((char *)work->name, "title")) {
+ if (!strcmp ((char *)work->name, "title") || !strcmp ((char *)work->name, "_title")) {
if (!title) {
if (!(tmp = (char *)xmlNodeGetContent (work)))
tmp = (char *)xmlStrdup ((const unsigned char *)"");
diff --git a/filter/filter-part.c b/filter/filter-part.c
index 01756fb711..7ed7c306e6 100644
--- a/filter/filter-part.c
+++ b/filter/filter-part.c
@@ -189,7 +189,7 @@ filter_part_xml_create (FilterPart *ff, xmlNodePtr node, RuleContext *rc)
} else {
g_warning ("Invalid xml format, missing/unknown input type");
}
- } else if (!strcmp ((char *)n->name, "title")) {
+ } else if (!strcmp ((char *)n->name, "title") || !strcmp ((char *)n->name, "_title")) {
if (!ff->title) {
str = (char *)xmlNodeGetContent (n);
ff->title = g_strdup (str);