From ff109a710c972c98271fe3b14d3c90dd055260c7 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 4 Apr 2026 22:15:45 -0400 Subject: [PATCH] fix: remove CSP-blocked inline event handlers (onerror, onclick) - Remove all onerror="this.style.display='none'" from avatar imgs in layout_header.php, DashboardView.php, and TicketView.php (PHP + JS) - Replace onclick SLA dismiss with data-action="dismiss-priority-banner" attribute; handler wired via existing click delegation in TicketView.php - Global capture-phase error delegation in layout_footer.php handles all avatar image failures by adding .lt-avatar-img-err class (CSS display:none) Co-Authored-By: Claude Sonnet 4.6 --- views/DashboardView.php | 2 +- views/TicketView.php | 20 ++++++++++---------- views/layout_header.php | 1 - 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/views/DashboardView.php b/views/DashboardView.php index ca91942..c41ee9f 100644 --- a/views/DashboardView.php +++ b/views/DashboardView.php @@ -331,7 +331,7 @@ include __DIR__ . '/layout_header.php';
diff --git a/views/TicketView.php b/views/TicketView.php index 910b098..aad3ad5 100644 --- a/views/TicketView.php +++ b/views/TicketView.php @@ -212,12 +212,7 @@ $progressClass = $slaBreached ? 'lt-progress--red' : ($slaPct >= 75 ? 'lt-progr
- +