From 66259c295bccc4c640992bae3bd4e40cdff638c9 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Mon, 2 Jan 2023 15:54:37 +0000 Subject: [PATCH] Escape potential HTML data from ticket fields --- portal/ticket_view_all.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/portal/ticket_view_all.php b/portal/ticket_view_all.php index 7dc48a2a..2166e3fd 100644 --- a/portal/ticket_view_all.php +++ b/portal/ticket_view_all.php @@ -55,12 +55,19 @@ $all_tickets = mysqli_query($mysqli, "SELECT * FROM tickets LEFT JOIN contacts O "; - echo " $ticket[ticket_prefix]$ticket[ticket_id]"; - echo " $ticket[ticket_subject]"; - echo "$ticket[contact_name]"; - echo "$ticket[ticket_status]"; + echo " $ticket_prefix$ticket_id"; + echo " $ticket_subject"; + echo "$ticket_contact_name"; + echo "$ticket_status"; echo ""; } ?>