临时转义下小写
parent
a636af1bdd
commit
632f120540
1
init.lua
1
init.lua
|
@ -91,6 +91,7 @@ function whiteurl()
|
||||||
end
|
end
|
||||||
function fileExtCheck(ext)
|
function fileExtCheck(ext)
|
||||||
local items = Set(fileExtension)
|
local items = Set(fileExtension)
|
||||||
|
ext=string.lower(ext)
|
||||||
if ext then
|
if ext then
|
||||||
if not items[ext] then
|
if not items[ext] then
|
||||||
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)
|
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)
|
||||||
|
|
Loading…
Reference in New Issue