diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-11 12:56:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-11 12:56:45 +0000 |
commit | a3a33300be3ea27727f527c63b8deca678f68a77 (patch) | |
tree | 675e48ab969324b26ea1800894b9363a8ea57374 /src/cfg_xml.c | |
parent | cf9ece0a57fb4f19865886958686d75f44e069d3 (diff) | |
download | rspamd-a3a33300be3ea27727f527c63b8deca678f68a77.tar.gz rspamd-a3a33300be3ea27727f527c63b8deca678f68a77.zip |
Fix xml parsing for param tags.
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r-- | src/cfg_xml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c index b8b75b715..9c60d8a7f 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -784,8 +784,11 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam if (extract_attr ("value", attribute_names, attribute_values, &res)) { element_name = res; } + else if (extract_attr ("name", attribute_names, attribute_values, &res)) { + element_name = res; + } else { - *error = g_error_new (xml_error_quark (), XML_PARAM_MISSING, "param 'value' is required for tag 'param'"); + *error = g_error_new (xml_error_quark (), XML_PARAM_MISSING, "attribute 'value' or 'name' are required for tag 'param'"); ud->state = XML_ERROR; } } |