summaryrefslogtreecommitdiffstats
path: root/bin/updatelist
diff options
context:
space:
mode:
authorJoey Hess <joeyh@debian.org>2005-10-19 23:53:49 +0000
committerJoey Hess <joeyh@debian.org>2005-10-19 23:53:49 +0000
commitd4bf189424f4aef905f46c272c884e9808021627 (patch)
tree1975a408f1e20350173d6fc15fca6c369b739569 /bin/updatelist
parentf06a642503bd3bead53a55298c17159af47df2b5 (diff)
update for slight html changes (really should use the xml..)
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@2467 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/updatelist')
-rwxr-xr-xbin/updatelist10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/updatelist b/bin/updatelist
index c018df441a..27550ca504 100755
--- a/bin/updatelist
+++ b/bin/updatelist
@@ -34,7 +34,7 @@ my %listedcves;
open (HTML, "<$html") || die "$html: $!\n";
my $cve;
while (<HTML>) {
- if (m!<b>(CVE-\d+-\d+)</b>!) {
+ if (m!<b>Name:\s+(CVE-\d+-\d+)</b>!) {
$cve=$1;
$cves{$cve}{cve}=$cve;
$listedcves{$cve}=1;
@@ -48,7 +48,13 @@ while (<HTML>) {
}
if (m!Description:\s*</b><br>\s*(.*)! &&
! m!\*\*\s+RESERVED\s+\*\*! && ! m!\*\*\s+REJECT\s+\*\*!) {
- $cves{$cve}{description}="($1 ...)";
+ my $desc;
+ $desc=$1;
+ if (! length $desc) {
+ $desc=<HTML>;
+ chomp $desc;
+ }
+ $cves{$cve}{description}="($desc ...)";
}
}
close HTML;

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