宝塔报 lua entry thread aborted Expected the end but found invalid token at character 317
coroutine 0:
[C]: in function 'decode'
/www/server/free_waf/init.lua:423: in function 'inc_log'
/www/server/free_waf/init.lua:404: in function 'write_log'
/www/server/free_waf/init.lua:842: in function 'post'
/www/server/free_waf/init.lua:1819: in function 'run_btwaf'
/www/server/free_waf/waf.lua:1: in function </www/server/free_waf/waf.lua:1> client: 60.205.193.90 server: newkhfw.test.com.cn request: "POST /web/index.php?c=utility&a=subscribe&do=receive& HTTP/1.1" host: "khfw.test.com.cn"
2022/04/01 14:06:58 [error] 16953#0: *638924 lua entry thread aborted: runtime error: /www/server/free_waf/init.lua:423: Expected the end but found invalid token at character 317
stack traceback:
找到
/www/server/free_waf/total.json
看一下
yle="max-width:100%;overflow-x:auto;">{"total":6635"sites":{"khfw.test.com.cn":{"cc":198"disable_upload_ext":4"post":158"args":1149"url":4398"upload_ext":4"scan":4"user_agent":713}"phpmyadmin":{"post":5"args":2}}"rules":{"cookie":0"args":1151"scan":4"user_agent":713"post":163"url":4398"cc":198"disable_upload_ext":4"upload_ext":4}}upload_ext":4}}
修改成
yle="max-width:100%;overflow-x:auto;">{"total":6635"sites":{"khfw.test.com.cn":{"cc":198"disable_upload_ext":4"post":158"args":1149"url":4398"upload_ext":4"scan":4"user_agent":713}"phpmyadmin":{"post":5"args":2}}"rules":{"cookie":0"args":1151"scan":4"user_agent":713"post":163"url":4398"cc":198"disable_upload_ext":4"upload_ext":4}}}}
就可以正常访问了