diff --git a/waf.lua b/waf.lua index eacce70..18c1d04 100644 --- a/waf.lua +++ b/waf.lua @@ -9,6 +9,8 @@ else -- elseif ngx.re.match(string.gsub(ngx.var.request_uri,"\\%",""),regex.."|"..get,"isjo") then -- log('GET',ngx.var.request_uri) -- check() + elseif ngx.re.match(ngx.var.request_uri,[[%00|%0b|%0d|%c0%ae|%0a]],"isjo") then + check() elseif ngx.req.get_body_data() and ngx.re.match(ngx.unescape_uri(ngx.req.get_body_data()),regex,"isjo")then log('POST',ngx.unescape_uri(ngx.var.request_uri),ngx.unescape_uri(ngx.req.get_body_data())) check()