perf: 补充定时任务违规字符串
This commit is contained in:
@@ -76,7 +76,7 @@ class JobConstant:
|
|||||||
"""
|
"""
|
||||||
定时任务常量
|
定时任务常量
|
||||||
|
|
||||||
JOB_ERROR_LIST: 定时任务禁止调用模块列表
|
JOB_ERROR_LIST: 定时任务禁止调用模块及违规字符串列表
|
||||||
JOB_WHITE_LIST: 定时任务允许调用模块列表
|
JOB_WHITE_LIST: 定时任务允许调用模块列表
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -84,11 +84,46 @@ class JobConstant:
|
|||||||
'app',
|
'app',
|
||||||
'config',
|
'config',
|
||||||
'exceptions',
|
'exceptions',
|
||||||
|
'import ',
|
||||||
'middlewares',
|
'middlewares',
|
||||||
'module_admin',
|
'module_admin',
|
||||||
|
'open(',
|
||||||
|
'os.',
|
||||||
'server',
|
'server',
|
||||||
'sub_applications',
|
'sub_applications',
|
||||||
|
'subprocess.',
|
||||||
|
'sys.',
|
||||||
'utils',
|
'utils',
|
||||||
|
'while ',
|
||||||
|
'__import__',
|
||||||
|
'"',
|
||||||
|
"'",
|
||||||
|
',',
|
||||||
|
'?',
|
||||||
|
':',
|
||||||
|
';',
|
||||||
|
'/',
|
||||||
|
'|',
|
||||||
|
'+',
|
||||||
|
'-',
|
||||||
|
'=',
|
||||||
|
'~',
|
||||||
|
'!',
|
||||||
|
'#',
|
||||||
|
'$',
|
||||||
|
'%',
|
||||||
|
'^',
|
||||||
|
'&',
|
||||||
|
'*',
|
||||||
|
'<',
|
||||||
|
'>',
|
||||||
|
'(',
|
||||||
|
')',
|
||||||
|
'[',
|
||||||
|
']',
|
||||||
|
'{',
|
||||||
|
'}',
|
||||||
|
' ',
|
||||||
]
|
]
|
||||||
JOB_WHITE_LIST = ['module_task']
|
JOB_WHITE_LIST = ['module_task']
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user