Skip to content

Commit

Permalink
refactor: conditionally display table information for multiple tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Jan 7, 2025
1 parent 60dcb13 commit 2b18fac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/scan_xss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ impl ScanXSS {
for table in &tables {
let mut xss_count = 0;

let text = format!("Table: '{}'", table);
UI::label(&text, "info");
if tables.len() > 1 {
let text = format!("Table: '{}'", table);
UI::label(&text, "info");
}

let query = MySqlQueriesBuilders.select(table, self.offset.map(|o| o as usize), self.limit.map(|l| l as usize));
let rows: Vec<Row> = conn.query(query)?;
Expand Down

0 comments on commit 2b18fac

Please sign in to comment.