From ae8b35ce2e872d59a4732bba54ab563d0f9f1cb9 Mon Sep 17 00:00:00 2001 From: loveshell <82163261@qq.com> Date: Fri, 12 Apr 2013 11:58:17 +0800 Subject: [PATCH] Update waf.lua --- waf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waf.lua b/waf.lua index 92769fb..f3e0fdc 100644 --- a/waf.lua +++ b/waf.lua @@ -14,7 +14,7 @@ else elseif ngx.var.http_user_agent and ngx.re.match(ngx.var.http_user_agent,regex.."|"..agent,"isjo") then log('USER-AGENT',ngx.unescape_uri(ngx.var.request_uri)) check() - elseif ngx.req.get_body_data() and ngx.re.match(ngx.unescape_uri(ngx.req.get_body_data()),regex,"isjo")then + elseif ngx.req.get_method()=='POST' 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() -- elseif ngx.req.get_headers()["Cookie"] and ngx.re.match(ngx.unescape_uri(ngx.req.get_headers()["Cookie"]),regex,"isjo")then