Update waf.lua
parent
82dcddc62b
commit
8fbd9e7029
4
waf.lua
4
waf.lua
|
@ -1,7 +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="(.*).(gif|jpg|jpeg|png|bmp|zip|rar)").*$]],"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))
|
||||
|
|
Loading…
Reference in New Issue