File size: 232 Bytes
f861dee
 
 
 
 
1
2
3
4
5
6
class QueryTransformer:
    def transform_query(self, query):
        if "DROP TABLE" in query or "SELECT *" in query:
            return "Your query appears to contain SQL injection elements. Please rephrase."
        return query