diff options
author | Joey Hess <joeyh@debian.org> | 2005-10-19 23:53:49 +0000 |
---|---|---|
committer | Joey Hess <joeyh@debian.org> | 2005-10-19 23:53:49 +0000 |
commit | d4bf189424f4aef905f46c272c884e9808021627 (patch) | |
tree | 1975a408f1e20350173d6fc15fca6c369b739569 /bin/updatelist | |
parent | f06a642503bd3bead53a55298c17159af47df2b5 (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-x | bin/updatelist | 10 |
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; |