From 610e648e7d6b51eaf35f2127f57eeb15ea1fcd99 Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Mon, 18 Mar 2019 20:17:03 +0100 Subject: 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. --- bin/updatelist | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/updatelist b/bin/updatelist index 655931a87d..305d547829 100755 --- a/bin/updatelist +++ b/bin/updatelist @@ -56,6 +56,8 @@ while () { $desc=; chomp $desc; } + # truncate length of description text added to lists + $desc = substr( $desc, 0, 70 ); $cves{$cve}{description}="($desc ...)"; } } -- cgit v1.2.3