mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
feat: 升级 openresty waf 配置 (#96)
This commit is contained in:
@@ -310,7 +310,12 @@ end
|
|||||||
local function postCheck()
|
local function postCheck()
|
||||||
if method == "POST" then
|
if method == "POST" then
|
||||||
local boundary = get_boundary()
|
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 len = string.len
|
||||||
local sock = ngx.req.socket()
|
local sock = ngx.req.socket()
|
||||||
if not sock then
|
if not sock then
|
||||||
|
|||||||
Reference in New Issue
Block a user