diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2019-03-18 20:17:03 +0100 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2019-03-18 20:30:15 +0100 |
commit | 20fd7fb7834ae51bdc824b80cec76c255b20f584 (patch) | |
tree | 87231bfb058156796b8cf9d69a8bf1532b4998ec /bin/updatelist | |
parent | 846d93872d0794a3a39d1b9e31b85b3367e65671 (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/updatelist')
-rwxr-xr-x | bin/updatelist | 2 |
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 ...)"; } } |