临时转义下小写

pull/47/head
loveshell 2015-04-17 22:05:12 +08:00
parent a636af1bdd
commit 632f120540
1 changed files with 1 additions and 0 deletions

View File

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