diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-06 14:17:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-06 14:17:54 +0100 |
commit | 79ca44875566d93607a6196c62391c231880b55d (patch) | |
tree | 37c204b7bce480b388e79f1cd4f960f4e875e62e | |
parent | 6c9ebe71113ae6930c2ebd8bc1769b613d8f5755 (diff) | |
parent | 5b154c87486e278b2d2fb7a219b06826f9b9ec37 (diff) | |
download | rspamd-79ca44875566d93607a6196c62391c231880b55d.tar.gz rspamd-79ca44875566d93607a6196c62391c231880b55d.zip |
Merge pull request #816 from moisseev/patch-1
[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 |