aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r--src/libserver/re_cache.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index 7b7cabb69..e43de2c64 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -1223,9 +1223,10 @@ rspamd_re_cache_exec_re (struct rspamd_task *task,
if (part->utf_words) {
for (j = 0; j < part->utf_words->len; j ++) {
- tok = &g_array_index (part->utf_words, rspamd_stat_token_t, j);
- scvec[cnt] = tok->begin;
- lenvec[cnt++] = tok->len;
+ tok = &g_array_index (part->utf_words,
+ rspamd_stat_token_t, j);
+ scvec[cnt] = tok->normalized.begin;
+ lenvec[cnt++] = tok->normalized.len;
}
}
}
@@ -1433,6 +1434,9 @@ rspamd_re_cache_type_to_string (enum rspamd_re_type type)
case RSPAMD_RE_SELECTOR:
ret = "selector";
break;
+ case RSPAMD_RE_WORDS:
+ ret = "words";
+ break;
case RSPAMD_RE_MAX:
ret = "invalid class";
break;