Browse Source

[Minor] Fix lint

tags/1.5.0
Vsevolod Stakhov 7 years ago
parent
commit
140fa526f1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/plugins/lua/phishing.lua

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

@@ -131,8 +131,8 @@ local function phishing_cb(task)
end

-- Now we can safely remove the last dot component if it is the same
local b,e = string.find(tld, '%.[^%.]+$')
local b1,e1 = string.find(ptld, '%.[^%.]+$')
local b,_ = string.find(tld, '%.[^%.]+$')
local b1,_ = string.find(ptld, '%.[^%.]+$')

if b1 and b then
if string.sub(tld, b) == string.sub(ptld, b1) then

Loading…
Cancel
Save