aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorbigbear <ns@bigbear.dk>2024-02-08 02:35:30 +0100
committerbigbear <ns@bigbear.dk>2024-02-08 19:52:52 +0100
commit162eb04a748a19a93c5dbaaa977c693c961f6ccf (patch)
tree60e5545c46f3867c937c61b8ff5ef8c9192c40ea /modules
parent56b68faf8c7590e85f1f83f65c7a1cd947f3fe15 (diff)
PR405 - icons for computer/security
Diffstat (limited to 'modules')
-rw-r--r--modules/computer.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/computer.c b/modules/computer.c
index a235efc9..cfa6bb3c 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -668,9 +668,16 @@ gchar *callback_security(void)
continue;
const gchar *icon = NULL;
+ if (g_strstr_len(contents, -1, "Not affected") )
+ icon = "circle_green_check.svg";
+
+ if (g_str_has_prefix(contents, "Mitigation:") ||
+ g_str_has_prefix(contents, "mitigation:"))
+ icon = "circle_yellow_exclaim.svg";
+
if (g_strstr_len(contents, -1, "Vulnerable") ||
g_strstr_len(contents, -1, "vulnerable"))
- icon = "dialog-warning.png";
+ icon = "circle_red_x.svg";
info_group_add_fields(vulns,
info_field(g_strdup(vuln),