Sanitize input #805
Some checks are pending
docker / docker_dev (push) Waiting to run

This commit is contained in:
jokob-sk
2024-09-26 08:08:24 +10:00
parent 2784f2ebeb
commit 15a7779d6e
2 changed files with 4 additions and 3 deletions

View File

@@ -808,8 +808,9 @@ def sanitize_string(input):
#-------------------------------------------------------------------------------
def sanitize_SQL_input(val):
val = val.replace("'", '_')
return val
if val is None:
return ''
return val.replace("'", "_")
#-------------------------------------------------------------------------------