mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 07:07:14 +00:00
Reworked getFieldById to remove escaping and and reworked everything that uses the function to also escape, was causing double escaping in many places this standardizes the function
This commit is contained in:
@@ -87,7 +87,7 @@ if (!empty($ticket_id) && !empty($reply)) {
|
||||
if (!empty($reply_ticket_status)) {
|
||||
mysqli_query($mysqli, "UPDATE tickets SET ticket_status = $reply_ticket_status WHERE ticket_id = $ticket_id LIMIT 1");
|
||||
|
||||
$new_status_name = getTicketStatusName($reply_ticket_status, 'sql');
|
||||
$new_status_name = escapeSql(getTicketStatusName($reply_ticket_status));
|
||||
logTicketHistory($ticket_id, "Status set to $new_status_name via the API ($api_key_name)");
|
||||
|
||||
// Resolve the ticket, if set
|
||||
|
||||
Reference in New Issue
Block a user