add new file suffix

distributed
loveshell 2013-03-25 14:32:00 +08:00
parent e1b3a21ca6
commit b16c41bbb9
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ agent=read_rule('user-agent')
whitelist=read_rule('whitelist') whitelist=read_rule('whitelist')
if ngx.re.match(ngx.var.request_uri,whitelist,"i") then if ngx.re.match(ngx.var.request_uri,whitelist,"i") then
return return
elseif ngx.req.get_body_data() and ngx.re.match(ngx.req.get_body_data(),[[^(?!Content-Disposition: form-data;(.*)filename="(.*).(php|jsp|phtml)").*$]],"isjo") then 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
return return
else else
if ngx.re.match(string.gsub(ngx.unescape_uri(ngx.var.request_uri),"%%",""),regex.."|"..get,"isjo") then if ngx.re.match(string.gsub(ngx.unescape_uri(ngx.var.request_uri),"%%",""),regex.."|"..get,"isjo") then