Update waf.lua

distributed
loveshell 2013-04-16 22:29:42 +08:00
parent 68faf80a4c
commit 82dcddc62b
1 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
if ngx.re.match(ngx.var.request_uri,whitelist,"isjo") then
return
--elseif ngx.req.get_method()=='POST' and ngx.re.match(ngx.req.get_body_data(),[[^(?!Content-Disposition: form-data;(.*)filename="(.*).(php|jsp|phtml|asp|aspx|cgi)").*$]],"isjo") then
-- return
--明天中午修改下这里
elseif ngx.req.get_method()=='POST' and ngx.re.match(ngx.req.get_body_data(),[[^(Content-Disposition: form-data;(.*)filename="(.*).(gif|jpg|jpeg|png|bmp|zip|rar)").*$]],"isjo") then
return
else
if ngx.re.match(ngx.unescape_uri(ngx.var.request_uri),regex.."|"..get,"isjo") then
log('GET',ngx.unescape_uri(ngx.var.request_uri))