diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-25 17:34:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-25 17:34:08 +0000 |
commit | e180ef2ce601b4118dab29ab074712c0a58244e4 (patch) | |
tree | b3da007cff3ce5964f86e868301fc9cb897ffb70 /src/lua/lua_mimepart.c | |
parent | 63ef123b048d5f1f2f6a5d172be6dc1a2629e2d7 (diff) | |
download | rspamd-e180ef2ce601b4118dab29ab074712c0a58244e4.tar.gz rspamd-e180ef2ce601b4118dab29ab074712c0a58244e4.zip |
[Project] Finish basic tasks in new unicode project
Diffstat (limited to 'src/lua/lua_mimepart.c')
-rw-r--r-- | src/lua/lua_mimepart.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c index 9e74c87c0..d2ff7e8e4 100644 --- a/src/lua/lua_mimepart.c +++ b/src/lua/lua_mimepart.c @@ -775,7 +775,7 @@ lua_textpart_get_words (lua_State *L) for (i = 0; i < part->utf_words->len; i ++) { w = &g_array_index (part->utf_words, rspamd_stat_token_t, i); - lua_pushlstring (L, w->begin, w->len); + lua_pushlstring (L, w->stemmed.begin, w->stemmed.len); lua_rawseti (L, -2, i + 1); } } @@ -983,7 +983,8 @@ lua_textpart_get_fuzzy_hashes (lua_State * L) for (i = 0; i < part->utf_words->len; i ++) { word = &g_array_index (part->utf_words, rspamd_stat_token_t, i); - rspamd_cryptobox_hash_update (&st, word->begin, word->len); + rspamd_cryptobox_hash_update (&st, + word->stemmed.begin, word->stemmed.len); } rspamd_cryptobox_hash_final (&st, digest); |