From: Alexander Moisseev Date: Fri, 5 Aug 2016 19:17:39 +0000 (+0300) Subject: [Fix] Fix HFILTER_URL_ONELINE rule X-Git-Tag: 1.3.2~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F816%2Fhead;p=thirdparty%2Frspamd.git [Fix] Fix HFILTER_URL_ONELINE rule --- diff --git a/src/plugins/lua/hfilter.lua b/src/plugins/lua/hfilter.lua index 88df8f5452..1c359f19ed 100644 --- a/src/plugins/lua/hfilter.lua +++ b/src/plugins/lua/hfilter.lua @@ -267,7 +267,7 @@ local function hfilter(task) local rel = url_len / plen if rel > 0.8 then task:insert_result('HFILTER_URL_ONLY', (rel - 0.8) * 5.0) - local lines = html_text_part:get_lines() + local lines = html_text_part:get_lines_count() if lines > 0 and lines < 2 then task:insert_result('HFILTER_URL_ONELINE', 1.00) end @@ -281,7 +281,7 @@ local function hfilter(task) local rel = url_len / plen if rel > 0.8 then task:insert_result('HFILTER_URL_ONLY', (rel - 0.8) * 5.0) - local lines = plain_text_part:get_lines() + local lines = plain_text_part:get_lines_count() if lines > 0 and lines < 2 then task:insert_result('HFILTER_URL_ONELINE', 1.00) end