diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-07 19:56:23 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-07 19:56:23 +0400 |
commit | e47778974acc39511f01ac89281bd32a759aab9f (patch) | |
tree | 9dbb56581cc68aaa080defdd843cf70d9ece1978 /src/cfg_utils.c | |
parent | e416c77b251198e1cad86e69fe2c8459d5f53209 (diff) | |
download | rspamd-e47778974acc39511f01ac89281bd32a759aab9f.tar.gz rspamd-e47778974acc39511f01ac89281bd32a759aab9f.zip |
* Wellcome to the XML world
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 9047340fb..4450d6cad 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -862,7 +862,7 @@ read_xml_config (struct config_file *cfg, const gchar *filename) ud.cfg = cfg; ud.state = XML_READ_START; - ctx = g_markup_parse_context_new (&xml_parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &ud, NULL); + ctx = g_markup_parse_context_new (&xml_parser, G_MARKUP_TREAT_CDATA_AS_TEXT | G_MARKUP_PREFIX_ERROR_POSITION, &ud, NULL); res = g_markup_parse_context_parse (ctx, data, st.st_size, &err); munmap (data, st.st_size); |