aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_trie.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-05 17:43:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-05 17:44:35 +0100
commita64ce9b4245153e68fbbcd9c6610b9c1ccf76493 (patch)
treeb9b9798b77974cf8d0793c948966a95963266771 /src/lua/lua_trie.c
parent3807688a67be66d00a24172c13b00b6fb1816d69 (diff)
downloadrspamd-a64ce9b4245153e68fbbcd9c6610b9c1ccf76493.tar.gz
rspamd-a64ce9b4245153e68fbbcd9c6610b9c1ccf76493.zip
[Rework] Rework utf content processing in text parts
- Store unicode in UTF parts - Store unicode for HTML parts - Rename struct fields and split them into unicode/utf components
Diffstat (limited to 'src/lua/lua_trie.c')
-rw-r--r--src/lua/lua_trie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_trie.c b/src/lua/lua_trie.c
index 16a8ace0c..e6a6052d4 100644
--- a/src/lua/lua_trie.c
+++ b/src/lua/lua_trie.c
@@ -262,9 +262,9 @@ lua_trie_search_mime (lua_State *L)
for (i = 0; i < task->text_parts->len; i ++) {
part = g_ptr_array_index (task->text_parts, i);
- if (!IS_PART_EMPTY (part) && part->content != NULL) {
- text = part->content->data;
- len = part->content->len;
+ if (!IS_PART_EMPTY (part) && part->utf_content != NULL) {
+ text = part->utf_content->data;
+ len = part->utf_content->len;
if (lua_trie_search_str (L, trie, text, len) != 0) {
found = TRUE;