Browse Source

update black filext

pull/47/head
loveshell 10 years ago
parent
commit
ca4383accc
  1. 6
      init.lua

6
init.lua

@ -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

Loading…
Cancel
Save