Skip to content

Commit bf36874

Browse files
committed
remove unused verify_string_parameter helper function.
1 parent c95699f commit bf36874

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

helpers.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,3 @@ def update_modified(subject, modified=datetime.datetime.now()):
138138
query += " }"
139139
query += " }"
140140
update(query)
141-
142-
# TODO: Not sure what this function is for, since strings are supposed to be escaped.
143-
def verify_string_parameter(parameter):
144-
if parameter and type(parameter) is str:
145-
if "insert" in parameter.lower(): return error("unauthorized insert in string parameter")
146-
if "delete" in parameter.lower(): return error("unauthorized delete in string parameter")
147-
if "load" in parameter.lower(): return error("unauthorized load in string parameter")
148-
if "clear" in parameter.lower(): return error("unauthorized clear in string parameter")
149-
if "create" in parameter.lower(): return error("unauthorized create in string parameter")
150-
if "drop" in parameter.lower(): return error("unauthorized drop in string parameter")
151-
if "copy" in parameter.lower(): return error("unauthorized copy in string parameter")
152-
if "move" in parameter.lower(): return error("unauthorized move in string parameter")
153-
if "add" in parameter.lower(): return error("unauthorized add in string parameter")

0 commit comments

Comments
 (0)