Skip to content

Commit

Permalink
docs/vulns: cleanup the vulnerability display per version
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jul 19, 2024
1 parent b4cdb94 commit 0a3aa70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions docs/_singlevuln.templ
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ WHERE3(Docs, "/docs/", Vulnerability table, "/docs/vulnerabilities.html", %versi
TITLE(Vulnerabilities in curl %version)
#include "adv-related-box.inc"

<p> curl version <b>%version</b> was released on <b>%date</b>. The following
<b>%vulnnum</b> security problem%vulnplural known to exist in this version.
<p> curl version <b>%version</b> was released on <b>%date</b>

<p> It has the following <b>%vulnnum</b> published security problem%vulnplural.

%vulnerabilities

SUBTITLE(Futher details)

<p>
CVE data for %version provided as <a href="vuln-%version.json">JSON</a>.

Expand Down
6 changes: 3 additions & 3 deletions docs/vulntable.pl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ sub single {
}
else {
# nothing known - yet
$vulnhtml = "<p> <big>Yay - there are no published security vulnerabilities for this version!</big>";
$vulnhtml = "<p> <strong>There are no published security vulnerabilities for this version.</strong>";
}

my $n = "<p> See vulnerability summary for ";
Expand All @@ -103,10 +103,10 @@ sub single {
$anchor =~ s/\./_/g;

if($vulnnum == 1) {
$vulnplural = ' is';
$vulnplural = "";
}
else {
$vulnplural = 's are';
$vulnplural = "s";
}

open(T, "<_singlevuln.templ");
Expand Down

0 comments on commit 0a3aa70

Please sign in to comment.