diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-16 17:41:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-16 17:41:40 +0000 |
commit | 49caa5a69eebb62b55d539d0ae7c2f4bd1a106f0 (patch) | |
tree | d34c17275f0e238c2f53311fae2e25202a1b79e0 /lualib/lua_stat.lua | |
parent | 2a0763e955fcbfa2c61e28faaa71765a8fc685e6 (diff) | |
download | rspamd-49caa5a69eebb62b55d539d0ae7c2f4bd1a106f0.tar.gz rspamd-49caa5a69eebb62b55d539d0ae7c2f4bd1a106f0.zip |
[Minor] Fix some issues and add debugging
Diffstat (limited to 'lualib/lua_stat.lua')
-rw-r--r-- | lualib/lua_stat.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_stat.lua b/lualib/lua_stat.lua index 4d6fef7a8..2b43defb6 100644 --- a/lualib/lua_stat.lua +++ b/lualib/lua_stat.lua @@ -621,12 +621,12 @@ local function get_mime_stat_tokens(task, res, i) online_text = true end - rawset(res, i, "#lang:" .. tp:get_language() or 'unk') + rawset(res, i, "#lang:" .. (tp:get_language() or 'unk')) lua_util.debugm("bayes", task, "added language: %s", res[i]) i = i + 1 - rawset(res, i, "#cs:" .. tp:get_charset() or 'unk') + rawset(res, i, "#cs:" .. (tp:get_charset() or 'unk')) lua_util.debugm("bayes", task, "added charset: %s", res[i]) i = i + 1 |