Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Jan 20, 2025
1 parent ddb7d7a commit f423af2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/sql_injection/detect_sql_injection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,7 @@ fn has_multiple_statements(query: &str, dialect: i32) -> bool {
if let Some(Token::SemiColon) = tokens_stripped.last() {
let remaining = &query[i + 1..];

if remaining.trim().len() <= 0 {
return false;
}

return true;
//return tokenize_query(remaining, dialect).len() <= 0;
return remaining.trim().len() > 0;
}
}
}
Expand Down

0 comments on commit f423af2

Please sign in to comment.