Skip to content

Commit

Permalink
update black filext
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Apr 19, 2015
1 parent f03a947 commit ca4383a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca4383a

Please sign in to comment.