Browse Source

[Fix] Fix HFILTER_URL_ONELINE rule

tags/1.3.2
Alexander Moisseev 8 years ago
parent
commit
5b154c8748
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/plugins/lua/hfilter.lua

+ 2
- 2
src/plugins/lua/hfilter.lua View File

@@ -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

Loading…
Cancel
Save