jx-sec / jxwaf

JXWAF是一款开源web应用防火墙
https://www.jxwaf.com/
GNU General Public License v2.0
1.11k stars 259 forks source link

上传文件时,nginx日志报错:attempt to call local '_file_content_disposition' (a table value) #53

Closed heroking closed 5 months ago

heroking commented 1 year ago

上传文件,nginx日志报错: 2023/05/15 18:20:55 [error] 21691#0: *122 [lua] access.lua:5: /opt/jxwaf/lualib/resty/jxwaf/waf.lua:750: attempt to call local '_file_content_disposition' (a table value)

修复办法: 修改/opt/jxwaf/lualib/resty/jxwaf/waf.lua文件750行 ngx.ctx.file_content_disposition = table.concat(_file_content_disposition" ") 改成: ngx.ctx.file_content_disposition = table.concat(_file_content_disposition," ")

jx-sec commented 1 year ago

mark

jx-sec commented 1 year ago

感谢反馈,已修复