From c89dbb4df35576bcc52d9d10c3a27698f07ddf66 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 18 Aug 2023 20:37:41 -0400 Subject: [PATCH] Properly format category name for HTML Displaying in budget --- report_budget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_budget.php b/report_budget.php index 0c35ea86..d29812da 100644 --- a/report_budget.php +++ b/report_budget.php @@ -65,7 +65,7 @@ $monthlyTotals = array_fill(1, 12, 0); // Initialize monthly totals for each mo if ($categories->num_rows > 0) { while($category = $categories->fetch_assoc()) { echo ""; - echo "" . $category['category_name'] . ""; + echo "" . nullable_htmlentities($category['category_name']) . ""; $categoryTotal = 0; for ($month = 1; $month <= 12; $month++) { // Fetch the monthly budget for this category for 2022