Package org.geotools.jdbc
Class EscapeSql
Object
EscapeSql
Perform basic SQL validation on input string. This is to allow safe encoding of parameters that must contain quotes,
while still protecting users from SQL injection.
We prevent SQL from breaking out of quotes by replacing any quotes in input stream with double quotes. Backslashes are too risky to allow so are removed completely
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EscapeSql
public EscapeSql()
-
-
Method Details
-
escapeLiteral
-
escapeSql
-