mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
blacklist - fix wrong parsing of reason data
This commit is contained in:
parent
62333a73e3
commit
fc817a62e1
1 changed files with 2 additions and 2 deletions
|
|
@ -355,10 +355,10 @@ end
|
|||
-- luacheck: ignore 212
|
||||
function blacklist:get_data(blacklisted)
|
||||
local data = {}
|
||||
if blacklisted == "ip" then
|
||||
if blacklisted:lower() == "ip" then
|
||||
data["id"] = "ip"
|
||||
else
|
||||
local id, value = blacklisted:match("^(.+) (.+)$")
|
||||
local id, value = blacklisted:match("^(%w+) (.+)$")
|
||||
if id and value then
|
||||
id = id:lower()
|
||||
data["id"] = id
|
||||
|
|
|
|||
Loading…
Reference in a new issue