[Git][security-tracker-team/security-tracker][master] 2 commits: Wrap long CVE descrptions for the vulnerability report template
Salvatore Bonaccorso
carnil at debian.org
Sun Mar 24 12:23:49 GMT 2019
Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker
Commits:
dd8870d3 by Salvatore Bonaccorso at 2019-03-22T07:36:09Z
Wrap long CVE descrptions for the vulnerability report template
MITRE changed the layout of the html pages for the CVE entries resulting
in long lines for the CVE descpritons not wrapped anymore directly
already in the fetched HTML.
Switch to use texwrap module to wrap the text in the description lines
and to be prefixed with a marker if the description is too long to be
hold in one line.
Signed-off-by: Salvatore Bonaccorso <carnil at debian.org>
- - - - -
f4e3dbdc by Salvatore Bonaccorso at 2019-03-24T12:23:37Z
Merge branch 'carnil/security-tracker-report-vuln-wrap-CVE-description'
- - - - -
1 changed file:
- bin/report-vuln
Changes:
=====================================
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:
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/f074bc9b023ba171ea477125c3e4ea00506d4806...f4e3dbdc3954fdee6eb63b3afc47383763bdfbfb
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/f074bc9b023ba171ea477125c3e4ea00506d4806...f4e3dbdc3954fdee6eb63b3afc47383763bdfbfb
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20190324/49fc02bb/attachment-0001.html>
More information about the debian-security-tracker-commits
mailing list