diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-08-05 22:17:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-05 22:17:39 +0300 |
commit | 5b154c87486e278b2d2fb7a219b06826f9b9ec37 (patch) | |
tree | b0b5b58eeac4eab25ba26527835a0e42722a6559 | |
parent | 5e0eeba0299b91bde5ec9dbcdf38b937e7f21031 (diff) | |
download | rspamd-5b154c87486e278b2d2fb7a219b06826f9b9ec37.tar.gz rspamd-5b154c87486e278b2d2fb7a219b06826f9b9ec37.zip |
[Fix] Fix HFILTER_URL_ONELINE rule
-rw-r--r-- | src/plugins/lua/hfilter.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/hfilter.lua b/src/plugins/lua/hfilter.lua index 88df8f545..1c359f19e 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 |