diff options
author | Robert Buchholz <rbu@gentoo.org> | 2008-11-26 19:16:08 +0000 |
---|---|---|
committer | Robert Buchholz <rbu@gentoo.org> | 2008-11-26 19:16:08 +0000 |
commit | f3130a3d27bab15a7454ae1fdc2952849c1b0496 (patch) | |
tree | 858e4dd39fb1539523e3dce2c2175d6ec8da79ff /lib | |
parent | MITRE sync (diff) | |
download | security-f3130a3d27bab15a7454ae1fdc2952849c1b0496.tar.gz security-f3130a3d27bab15a7454ae1fdc2952849c1b0496.tar.bz2 security-f3130a3d27bab15a7454ae1fdc2952849c1b0496.zip |
Correctly print guessed names for CVE.
svn path=/; revision=939
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/cvetools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/cvetools.py b/lib/python/cvetools.py index 69899cf..0e71504 100644 --- a/lib/python/cvetools.py +++ b/lib/python/cvetools.py @@ -73,7 +73,7 @@ class CVEData: match = re.findall(r'<b>Provided and/or discovered by</b>:(.+?)<b>', html, flags = re.S) if match: text = re.sub('<.*?>', '', match[0]) - names[SAid] = [re.sub(r'in a .* bug report', '', re.sub(r'^[\d,) ]*(.* credits|Reported by)?', '', line)).strip(' \n.') for line in text.split('\n')] + names[SAid] = [re.sub(r'(in|via) a .* bug report', '', re.sub(r'^[\d,) -]*(.* credits|Reported by)?', '', line)).strip(' \r\n.') for line in text.split('\n')] return names |