Nginx防火墙 9.5.2
防护事件卡片 > 拦截记录页面
点清空日志,选择“全部选中”。提交接口的数据 site_all值是1, site_logs值是[],造成接口报错
选择单个网站是正确的
二次测试,不选择“全部选中”,而是点击每个站点,正确
盲猜接口site_all=1的逻辑有问题
三次测试,IP临时拉黑记录日志清理,参数safe_logs=1也报错
接口提示
- REQUEST_DATE: 2024-10-14 14:01:03
- PAN_VERSION: 9.2.0
- OS_VERSION: CentOS 7.9.2009 x86_64(Py3.7.9)
- REMOTE_ADDR: 113.235.184.247
- REQUEST_URI: POST /plugin%3Faction%3Da%26name%3Dbtwaf%26s%3Dremove_log
- REQUEST_FORM: {'safe_logs': '1', 'site_all': '0', 'site_logs': '[]'}
- USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
- Traceback (most recent call last):
- File "class/panelPlugin.py", line 3739, in a
- return p.exec_fun(get)
- File "class/pluginAuth.py", line 67, in exec_fun
- raise public.PanelError(res['msg'])
- public.PanelError: 面板运行时发生错误: Traceback (most recent call last):
- File "/www/server/panel/plugin/btwaf/btwaf_main.py", line 5667, in remove_log
- TypeError: string indices must be integers
复制代码
|
|