对test进行屏蔽

This commit is contained in:
yhy0 2021-04-16 15:54:24 +08:00
parent b007843955
commit 75626ff53d

View File

@ -48,7 +48,7 @@ def regular(req):
cve_description = re.findall('"description":*.{1,200}"fork"', req)[0].replace("\",\"fork\"", '').replace( cve_description = re.findall('"description":*.{1,200}"fork"', req)[0].replace("\",\"fork\"", '').replace(
"\"description\":\"", '') "\"description\":\"", '')
if cve_name.lower().find('test') != -1 and cve_description.lower().find('test') != -1: if cve_name.lower().find('test') == -1 and cve_description.lower().find('test') == -1:
return True return True
return False return False