Files
safeGate/waf/report.lua

12 lines
346 B
Lua
Raw Permalink Normal View History

2022-03-03 16:16:53 +08:00
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