summaryrefslogtreecommitdiffstats
path: root/bin/updatelist
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
commit20fd7fb7834ae51bdc824b80cec76c255b20f584 (patch)
tree87231bfb058156796b8cf9d69a8bf1532b4998ec /bin/updatelist
parent846d93872d0794a3a39d1b9e31b85b3367e65671 (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-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