Skip to content

Commit 632f120

Browse files
committed
临时转义下小写
1 parent a636af1 commit 632f120

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ function whiteurl()
9191
end
9292
function fileExtCheck(ext)
9393
local items = Set(fileExtension)
94+
ext=string.lower(ext)
9495
if ext then
9596
if not items[ext] then
9697
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)

0 commit comments

Comments
 (0)