diff options
author | root <root@166-D916-JPEC-SH01.ad.aruba.it> | 2024-05-28 15:00:56 +0200 |
---|---|---|
committer | root <root@166-D916-JPEC-SH01.ad.aruba.it> | 2024-05-28 15:00:56 +0200 |
commit | 818276253ed76d9aa568d9ff01a55c1dcf747110 (patch) | |
tree | 099da5972a947b36f3e972f6af8ce65c6a7a7d76 /lualib | |
parent | 710b7b69b08a83c519db64ab94a6b7f8e7ec732c (diff) | |
download | rspamd-818276253ed76d9aa568d9ff01a55c1dcf747110.tar.gz rspamd-818276253ed76d9aa568d9ff01a55c1dcf747110.zip |
Fix get_words_count method to be called on the textpart and not on the mimepart
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_scanners/common.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_scanners/common.lua b/lualib/lua_scanners/common.lua index 11f5e1f87..fa751f4f4 100644 --- a/lualib/lua_scanners/common.lua +++ b/lualib/lua_scanners/common.lua @@ -459,7 +459,7 @@ local function check_parts_match(task, rule) -- check text_part has more words than text_part_min_words_check if rule.scan_text_mime and rule.text_part_min_words and p:is_text() and - p:get_words_count() >= tonumber(rule.text_part_min_words) then + p:get_text():get_words_count() >= tonumber(rule.text_part_min_words) then return true end |