Skip to content

Commit

Permalink
Update CWE list delimiters
Browse files Browse the repository at this point in the history
Allow '/' delimiter for CWE list to generate proper helouri entries for FF1026 & FF1030
Fixes david-a-wheeler#78
  • Loading branch information
dkt01 authored Jul 25, 2024
1 parent 56ffb9f commit 095dee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flawfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 095dee5

Please sign in to comment.