Fixed output stop when control char exist in windows terminal (#485)
* added control character filter in details #382 * fixed document - removed fixed windows teminal caution in readme
This commit is contained in:
+8
-1
@@ -199,7 +199,14 @@ fn emit_csv<W: std::io::Write>(
|
||||
computer: &format!(" {} ", &detect_info.computername),
|
||||
event_i_d: &format!(" {} ", &detect_info.eventid),
|
||||
rule_title: &format!(" {} ", &detect_info.alert),
|
||||
details: &format!(" {}", &detect_info.detail),
|
||||
details: &format!(
|
||||
" {}",
|
||||
&detect_info
|
||||
.detail
|
||||
.chars()
|
||||
.filter(|&c| !c.is_control())
|
||||
.collect::<String>()
|
||||
),
|
||||
})?;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user