summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2019-03-18 20:17:03 +0100
committerSalvatore Bonaccorso <carnil@debian.org>2019-03-18 20:30:15 +0100
commit610e648e7d6b51eaf35f2127f57eeb15ea1fcd99 (patch)
treefa1cab804bf835968861f297706e64c06d82ed1f /bin
parent99098faf4fb367bd1d1a1b209a8d4ce6512d47a3 (diff)
Truncate length of description text added to lists
This is not optimal at this point as it might truncate word in between which in the old schema full words were left because MITRE did not provide the description in one long line and the updatelist was just adding the first line. This still is enough as the tracker will add full description for the webpage and the truncated description was just to keep a "short description" in the CVE list file itself.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/updatelist2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/updatelist b/bin/updatelist
index 655931a87d..305d547829 100755
--- a/bin/updatelist
+++ b/bin/updatelist
@@ -56,6 +56,8 @@ while (<HTML>) {
$desc=<HTML>;
chomp $desc;
}
+ # truncate length of description text added to lists
+ $desc = substr( $desc, 0, 70 );
$cves{$cve}{description}="($desc ...)";
}
}

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