Skip to content

Commit

Permalink
Update waf.lua
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
jx-sec committed May 9, 2019
1 parent fccd15e commit aa112ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/resty/jxwaf/waf.lua
Expand Up @@ -66,7 +66,9 @@ local function _process_request(var)

if( type(var.rule_ignore) == "table" ) then
local ignore_result = {}
ignore_result = t
for k,v in pairs(t) do
ignore_result[k] = v
end
for _,v in ipairs(var.rule_ignore) do
ignore_result[string.lower(v)] = nil
end
Expand Down

0 comments on commit aa112ae

Please sign in to comment.