Skip to content

Commit

Permalink
feat: 升级 openresty waf 配置 (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored May 31, 2023
1 parent 6a94bca commit 535212e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/openresty/1.21.4.1/www/common/waf/access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,12 @@ end
local function postCheck()
if method == "POST" then
local boundary = get_boundary()
if boundary then
local fileExtDeny = optionIsOn(ngx.var.fileExtDeny)
if boundary and fileExtDeny then
local protocol = ngx.var.server_protocol
if protocol == "HTTP/2.0" then
return
end
local len = string.len
local sock = ngx.req.socket()
if not sock then
Expand Down

0 comments on commit 535212e

Please sign in to comment.