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
commit7428273be55f9c800c4ee2e44e83009fa3a9f5c3 (patch)
treedcea4cf5bab68d906d6f8081fb6fc90fa325a67d /bin/updatelist
parentceedf72968dd9e933da016ca0ab25266074dd9b0 (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