Skip to content

Commit

Permalink
Update waf.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Mar 26, 2013
1 parent 17aefa5 commit dcfb9a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions waf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ else
if ngx.re.match(string.gsub(ngx.unescape_uri(ngx.var.request_uri),"\\%",""),regex.."|"..get,"isjo") then
log('GET',ngx.unescape_uri(ngx.var.request_uri))
check()
elseif ngx.re.match(ngx.re.gsub(ngx.var.request_uri,"\\%",""),regex.."|"..get,"isjo") then
log('GET',ngx.unescape_uri(ngx.var.request_uri))
check()
elseif ngx.req.get_body_data() and ngx.re.match(string.gsub(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()
Expand Down

0 comments on commit dcfb9a3

Please sign in to comment.