diff options
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r-- | src/cfg_xml.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c index b84d556b7..7fda9e14f 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -33,12 +33,14 @@ #include "util.h" #include "classifiers/classifiers.h" #include "tokenizers/tokenizers.h" -#include "lua/lua_common.h" + #include "view.h" #include "map.h" #include "expressions.h" #include "settings.h" +#include "lua/lua_common.h" + /* Maximum attributes for param */ #define MAX_PARAM 64 @@ -1077,7 +1079,6 @@ handle_lua (struct config_file *cfg, struct rspamd_xml_userdata *ctx, GHashTable return FALSE; } } - return TRUE; } @@ -1510,6 +1511,7 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam struct classifier_config *ccf; gchar *res, *condition; + if (g_ascii_strcasecmp (element_name, "if") == 0) { /* Push current state to queue */ g_queue_push_head (ud->if_stack, GSIZE_TO_POINTER ((gsize)ud->state)); |