Skip to content

Commit

Permalink
Install sqlparser and import in detect_sql_injection
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Sep 20, 2024
1 parent eeb82d7 commit abba023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ crate-type = ["dylib"]

[dependencies]
regex = "1.10.6"
sqlparser = "0.51.0"
url = "2.5.2"

[dev-dependencies]
Expand Down
3 changes: 3 additions & 0 deletions src/sql_injection/detect_sql_injection.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use sqlparser::dialect::*;
use sqlparser::tokenizer::*;

pub fn detect_sql_injection(query: &str, userinput: &str) -> bool {
false
}

0 comments on commit abba023

Please sign in to comment.