update black filext

pull/47/head
loveshell 2015-04-19 12:12:33 +08:00
parent f03a947767
commit ca4383accc
1 changed files with 3 additions and 3 deletions

View File

@ -90,11 +90,11 @@ function whiteurl()
return false return false
end end
function fileExtCheck(ext) function fileExtCheck(ext)
local items = Set(fileExtension) local items = Set(black_fileExt)
ext=string.lower(ext) ext=string.lower(ext)
if ext then if ext then
if not items[ext] then if items[ext] then
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext) log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)
say_html() say_html()
end end
end end