Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Jan 20, 2025
1 parent f423af2 commit 324f489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sql_injection/detect_sql_injection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn detect_sql_injection_str(query: &str, userinput: &str, dialect: i32) -> b
if tokens.len() <= 0 {
if dialect == 3 && has_multiple_statements(query, dialect) {
// Clickhouse does not support multiple statements
// The first statement will still be executed if of the other statements is still valid
// The first statement will still be executed if the other statements are invalid
// We'll assume the original query is valid
// If the query with user input replaced is valid, we'll assume it's an injection because it created a new statement
let query_without_input = replace_user_input_with_safe_str(query, userinput);
Expand Down

0 comments on commit 324f489

Please sign in to comment.