Escape single quotes before posting to osTicket
* Only done for the post body for now
This commit is contained in:
parent
ed339866f7
commit
e99f16300f
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ class osTicket():
|
|||
sql_cmd += " VALUES ("
|
||||
sql_cmd += " '{}',".format(ticket_id)
|
||||
sql_cmd += " '{ID}', '{Name}',".format(**OSTICKET['Staff'])
|
||||
sql_cmd += " '{}',".format(response)
|
||||
sql_cmd += " '{}',".format(response.replace("'", "\\'"))
|
||||
sql_cmd += " '{}'".format(time.strftime("%Y-%m-%d %H:%M:%S"))
|
||||
sql_cmd += " );"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue