We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee40966 commit ee2e656Copy full SHA for ee2e656
init.lua
@@ -93,9 +93,11 @@ function fileExtCheck(ext)
93
local items = Set(black_fileExt)
94
ext=string.lower(ext)
95
if ext then
96
- if items[ext] then
97
- log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)
+ for rule in pairs(items) do
+ if ngx.re.match(ext,rule,"isjo") then
98
+ log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)
99
say_html()
100
+ end
101
end
102
103
return false
0 commit comments