Skip to content

Commit

Permalink
docs/security: show the severity filter status
Browse files Browse the repository at this point in the history
- Add a sentence above the vulnerability table that lets the user know
  whether or not the table has a severity filter applied.

Example: (The table below has been filtered to show High+ severity)

This is a follow-up to 90850a7 which added generated security pages
for different severity levels. security-m.html (Medium),
security-h.html (High) and security-c.html (Critical).

When I google search for `curl cves` the second result is a link
to security-h.html. It may not be immediately obvious that the table is
filtered and not showing all vulnerabilities.

Closes #305
  • Loading branch information
jay authored and bagder committed Oct 7, 2023
1 parent e1e5206 commit 2e9f484
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_security.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,16 @@
<p>

#if SEVERITY == 1
(The table below has been filtered to show Medium+ severity)
#include "seclist-m.gen"
#elif SEVERITY == 2
(The table below has been filtered to show High+ severity)
#include "seclist-h.gen"
#elif SEVERITY == 3
(The table below has been filtered to show Critical severity)
#include "seclist-c.gen"
#else
(The table below shows vulnerabilities of all severity levels)
#include "seclist.gen"
#endif
SUBTITLE(Retracted security vulnerabilities)
Expand Down

0 comments on commit 2e9f484

Please sign in to comment.