From 5b154c87486e278b2d2fb7a219b06826f9b9ec37 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Fri, 5 Aug 2016 22:17:39 +0300 Subject: [PATCH] [Fix] Fix HFILTER_URL_ONELINE rule --- src/plugins/lua/hfilter.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3