From 095dee5428d1250eb6b3c01c862c05b4c6d6bd90 Mon Sep 17 00:00:00 2001 From: David K Turner Date: Thu, 25 Jul 2024 13:48:46 -0500 Subject: [PATCH] Update CWE list delimiters Allow '/' delimiter for CWE list to generate proper helouri entries for FF1026 & FF1030 Fixes #78 --- flawfinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flawfinder.py b/flawfinder.py index f8c82a4..d6576f8 100755 --- a/flawfinder.py +++ b/flawfinder.py @@ -589,7 +589,7 @@ def fingerprint(self): def helpuri(self): if self.cwes() == '': return 'https://dwheeler.com/flawfinder#{}'.format(self.ruleid) - cwe = re.split(',|!', self.cwes())[0] + ")" + cwe = re.split('[,!/]', self.cwes())[0] + ")" return link_cwe_pattern.sub( r'https://cwe.mitre.org/data/definitions/\2.html', cwe)