aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/lang_detection.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-04 11:27:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-04 11:27:31 +0000
commitbec41c2ba9e7377ea76ac4d32dc22fd42b2e183e (patch)
treeed6e3e1a1de96614b7c68fc413319555d42d377b /src/libmime/lang_detection.c
parent9cf530bdb68ec3bfbfec643bf89fb279983e41a9 (diff)
downloadrspamd-bec41c2ba9e7377ea76ac4d32dc22fd42b2e183e.tar.gz
rspamd-bec41c2ba9e7377ea76ac4d32dc22fd42b2e183e.zip
[Fix] Ignore diacritics in chartable module for specific languages
Issue: #3156
Diffstat (limited to 'src/libmime/lang_detection.c')
-rw-r--r--src/libmime/lang_detection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index af646d7cf..033f8d3d6 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -435,7 +435,7 @@ rspamd_language_detector_read_file (struct rspamd_config *cfg,
flags = ucl_object_lookup (top, "flags");
- if (type != NULL && ucl_object_type (type) == UCL_ARRAY) {
+ if (flags != NULL && ucl_object_type (flags) == UCL_ARRAY) {
ucl_object_iter_t it = NULL;
const ucl_object_t *cur;