Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python str and repr

3    def is_sql_injection(request):
4        pattern = re.compile(r".*(union)|(select).*")
5        name_to_test = request.GET['name']
6        if re.search(pattern, name_to_test):
7            return True
8        return False
Source by blog.sonarsource.com #
 
PREVIOUS NEXT
Tagged: #python #str #repr
ADD COMMENT
Topic
Name
1+6 =