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
end
function fileExtCheck(ext)
local items = Set(fileExtension)
local items = Set(black_fileExt)
ext=string.lower(ext)
if ext then
if not items[ext] then
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)
if items[ext] then
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)
say_html()
end
end