From dbe087ea9d3cb13f026de9b1d6824bda4db3a89e Mon Sep 17 00:00:00 2001 From: Kraemii Date: Fri, 13 Dec 2024 16:08:55 +0100 Subject: [PATCH] Fix: VT preferences When checking the preferences for VTs set by the user, it used the value provided by the script itself instead the one provided by the user (except for type checkbox), so many values were not set to an empty string. --- rust/src/openvas/pref_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/openvas/pref_handler.rs b/rust/src/openvas/pref_handler.rs index f287d34be..75597ac01 100644 --- a/rust/src/openvas/pref_handler.rs +++ b/rust/src/openvas/pref_handler.rs @@ -113,7 +113,7 @@ where let value_aux: String = if class == *"checkbox" { bool_to_str(&pref.value) } else { - value + pref.value.to_string() }; pref_list.insert(