Skip to content

Commit

Permalink
Fix: VT preferences
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kraemii committed Dec 13, 2024
1 parent 9261611 commit 39bfda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/openvas/pref_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 39bfda6

Please sign in to comment.