[fix] Sanitize blacklisted functions
This commit is contained in:
parent
418d654331
commit
55eaba90f5
1 changed files with 4 additions and 1 deletions
|
|
@ -203,7 +203,10 @@ class DatabaseQuery(object):
|
|||
if any(keyword in field.lower().split() for keyword in blacklisted_keywords):
|
||||
_raise_exception()
|
||||
|
||||
if any("{0}(".format(keyword) in field.lower().split() for keyword in blacklisted_functions):
|
||||
if any("({0}".format(keyword) in field.lower() for keyword in blacklisted_keywords):
|
||||
_raise_exception()
|
||||
|
||||
if any("{0}(".format(keyword) in field.lower() for keyword in blacklisted_functions):
|
||||
_raise_exception()
|
||||
|
||||
def extract_tables(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue