From fb1219b51c6649425e4e263184186ab1350c203b Mon Sep 17 00:00:00 2001 From: NaysKutzu <87282334+NaysKutzu@users.noreply.github.com> Date: Sat, 9 Dec 2023 15:04:32 +0100 Subject: [PATCH] PUSH -> Fixed bug in #99 --- view/tickets/list.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view/tickets/list.php b/view/tickets/list.php index ebf3a4d2..e03c4012 100644 --- a/view/tickets/list.php +++ b/view/tickets/list.php @@ -16,9 +16,9 @@ } $statusCondition = " `status` IN ('open', 'closed')"; $tickets_query = "SELECT * FROM mythicaldash_tickets" . mysqli_real_escape_string($conn,$searchCondition) . (mysqli_real_escape_string($conn,$searchCondition) ? ' AND ' : ' WHERE ') . mysqli_real_escape_string($conn,$statusCondition) . " ORDER BY `id` LIMIT ".mysqli_real_escape_string($conn,$offset).", ".mysqli_real_escape_string($conn,$ticketsPerPage).""; -$result = $conn->query($tickets_query); +$result = $conn->query(stripslashes($tickets_query)); $totalTicketsQuery = "SELECT COUNT(*) AS total_tickets FROM mythicaldash_tickets" . mysqli_real_escape_string($conn,$searchCondition) . (mysqli_real_escape_string($conn,$searchCondition) ? ' AND ' : ' WHERE ') . mysqli_real_escape_string($conn,$statusCondition); -$totalResult = $conn->query($totalTicketsQuery); +$totalResult = $conn->query(stripslashes($totalTicketsQuery)); $totalTickets = $totalResult->fetch_assoc()['total_tickets']; $totalPages = ceil($totalTickets / $ticketsPerPage); ?> @@ -141,4 +141,4 @@ - \ No newline at end of file +