aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_xml.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-15 15:49:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-15 15:49:15 +0000
commit384f8cfa8afeb9e05fd07d6eb947647c7591af81 (patch)
tree7df79d3d05e6fd1998ac390453586dcc3148a22f /src/cfg_xml.c
parent4cd82b05a91ce79c3c84845189311c844ff587b4 (diff)
downloadrspamd-384f8cfa8afeb9e05fd07d6eb947647c7591af81.tar.gz
rspamd-384f8cfa8afeb9e05fd07d6eb947647c7591af81.zip
Fix logging conversion from xml.
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r--src/cfg_xml.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c
index ffe9b8027..1e20f0456 100644
--- a/src/cfg_xml.c
+++ b/src/cfg_xml.c
@@ -834,7 +834,8 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam
}
else {
tobj = ucl_object_new ();
- if (process_attrs (attribute_names, attribute_values, tobj)) {
+ if (g_ascii_strcasecmp (element_name, "symbol") == 0 &&
+ process_attrs (attribute_names, attribute_values, tobj)) {
ud->parent_pointer[ud->nested] = tobj;
tobj->type = UCL_OBJECT;
ud->parent_pointer[ud->nested - 1] =
@@ -853,6 +854,7 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam
}
else {
ucl_object_unref (tobj);
+ process_attrs (attribute_names, attribute_values, ud->parent_pointer[ud->nested - 1]);
}
}
break;