Skip to content

Commit

Permalink
临时转义下小写
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Apr 17, 2015
1 parent a636af1 commit 632f120
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function whiteurl()
end
function fileExtCheck(ext)
local items = Set(fileExtension)
ext=string.lower(ext)
if ext then
if not items[ext] then
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)
Expand Down

0 comments on commit 632f120

Please sign in to comment.