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 28, 2013
1 parent 1705b4c commit 1ac22a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions waf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1ac22a6

Please sign in to comment.