summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2019-03-24 13:23:37 +0100
committerSalvatore Bonaccorso <carnil@debian.org>2019-03-24 13:23:37 +0100
commitf4e3dbdc3954fdee6eb63b3afc47383763bdfbfb (patch)
tree9c510ac39409f7d1a3eb2da15e8b480b04f21b0e /bin
parentf074bc9b023ba171ea477125c3e4ea00506d4806 (diff)
parentdd8870d35e6bea61c46d779579363b369c873f4f (diff)
Merge branch 'carnil/security-tracker-report-vuln-wrap-CVE-description'
Diffstat (limited to 'bin')
-rwxr-xr-xbin/report-vuln5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/report-vuln b/bin/report-vuln
index eb1d713558..7e8f93b506 100755
--- a/bin/report-vuln
+++ b/bin/report-vuln
@@ -14,6 +14,7 @@ from __future__ import print_function
import argparse
from tempfile import NamedTemporaryFile
import sys, re, urllib, os
+from textwrap import wrap
temp_id = re.compile('(?:CVE|cve)\-[0-9]{4}-XXXX')
@@ -89,7 +90,9 @@ def get_cve(id):
continue
if desc and '<td colspan="2">' in line:
- ret += '| ' + re.sub('.*<td colspan="2">', '', line)
+ line = re.sub('.*<td colspan="2">', '', line)
+ for line in wrap(line):
+ ret += '| ' + line + '\n'
continue
if desc and '</td>' in line:

© 2014-2024 Faster IT GmbH | imprint | privacy policy