Files
safeGate/waf/report.lua
2022-03-03 16:16:53 +08:00

12 lines
346 B
Lua

local _M = {}
function _M.violation(result)
full_violation_text = "violation: \n"
if result == g_violation_sql_detect then
g_result_sql_detect = full_violation_text .. "SQL Injection detected \n"
end
full_violation_text = full_violation_text .. ngx.var.request_uri .. " \n"
log(violation)
say_html()
end
return _M