aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-01 17:22:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-01 17:22:25 +0100
commita6cd2a702ff1dcc24105638c466f82f257d6011e (patch)
tree08a90d5d3c02229cfdf344757cd1d2c79e2ae32b
parent0687962d26696769c215ff53beb7f87d59892cd8 (diff)
downloadrspamd-a6cd2a702ff1dcc24105638c466f82f257d6011e.tar.gz
rspamd-a6cd2a702ff1dcc24105638c466f82f257d6011e.zip
Fix hfilter URL_ONELINE rule.
-rw-r--r--conf/lua/hfilter.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/conf/lua/hfilter.lua b/conf/lua/hfilter.lua
index 159b03a77..57361b3b8 100644
--- a/conf/lua/hfilter.lua
+++ b/conf/lua/hfilter.lua
@@ -235,9 +235,7 @@ local function hfilter(task)
if total_url_len + 7 > total_parts_len then
task:insert_result('HFILTER_URL_ONLY', 1.00)
elseif text_parts_count == 1 and selected_text_part and selected_text_part:get_length() < 1024 then
- -- We got a single text part with the total length < 1024 symbols.
- local part_text = selected_text_part:get_content()
- if part_text and part_text:get_lines_count() < 2 then
+ if selected_text_part:get_lines_count() < 2 then
task:insert_result('HFILTER_URL_ONELINE', 1.00)
end
end