Update waf.lua
parent
ae8b35ce2e
commit
e18ca1a4ab
2
waf.lua
2
waf.lua
|
@ -1,6 +1,6 @@
|
|||
if ngx.re.match(ngx.var.request_uri,whitelist,"isjo") then
|
||||
return
|
||||
elseif ngx.req.get_body_data() and ngx.re.match(ngx.req.get_body_data(),[[^(?!Content-Disposition: form-data;(.*)filename="(.*).(php|jsp|phtml|asp|aspx|cgi)").*$]],"isjo") then
|
||||
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
|
||||
else
|
||||
if ngx.re.match(ngx.unescape_uri(ngx.var.request_uri),regex.."|"..get,"isjo") then
|
||||
|
|
Loading…
Reference in New Issue