SQL Injection - Avoiding
Avoiding
Sanitize data.
If the product id is an Int, validate the value before issuing a request.
Filter out invalid characters (but this has limited success!)
Use Prepared Statements.
Clear separation between structure and data.
Data cannot alter SQL query structure.
Prepared Statements Java
Last updated