diff --git a/src/plugins/reports_xss.rs b/src/plugins/reports_xss.rs index ba87670..d0c26a6 100644 --- a/src/plugins/reports_xss.rs +++ b/src/plugins/reports_xss.rs @@ -84,8 +84,9 @@ impl ReportsXSS { pub fn html(&self, detections: Vec<(String, usize, String, String)>, output_path: &str) -> Result<(), Box> { let mut file = File::create(output_path)?; file.write_all(b"XSS Reports")?; - file.write_all(b"")?; - file.write_all(b"")?; + file.write_all(b"")?; + file.write_all(b"
TableRow IndexColumnValue
")?; + file.write_all(b"")?; for (table, row_index, column, value) in detections { let encoded_table = ReportsHandlers.html_escape(&table); @@ -98,7 +99,7 @@ impl ReportsXSS { ).as_bytes())?; } - file.write_all(b"
TableRow IndexColumnValue
")?; + file.write_all(b"")?; ReportAlerts::generated(output_path); Ok(())