waf matching step by step debug
@@ -27,9 +27,12 @@ comment -- multi line comment
function wafsig_re_match(input, request)
local id = WAFRustSignatures:is_match_id(input)
- local operand = WAFSignatures[id] and WAFSignatures[id].operand
- request.handle:logDebug(string.format("wafsig_re_match matched? (%s) with (%s:[==[%s]==])", input, id, operand))
+ request.handle:logDebug(string.format("wafsig_re_match matched? (%s) with (%s)", input, id))
if id then
+ if WAFSignatures[id] then
+ local operand = WAFSignatures[id].operand
+ request.handle:logDebug(string.format("wafsig_re_match matched? (%s) with (%s:[==[%s]==])", input, id, operand))
+ end
return WAFSignatures[id]
end
end
