Fix Truncated Client name in side nav needs to be truncated before escaped

This commit is contained in:
johnnyq
2026-07-20 19:31:31 -04:00
parent d173357b51
commit 058e31c290
2 changed files with 2 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
<p class="h5">
<i class="nav-icon fas fa-arrow-left ml-3 mr-1"></i>
<span class="brand-text">
Back | <strong><?php echo truncate($client_name, 7); ?></strong>
Back | <strong><?= $client_name_truncated ?></strong>
</span>
</p>
</a>

View File

@@ -33,6 +33,7 @@ if (isset($_GET['client_id'])) {
$row = mysqli_fetch_assoc($sql);
$client_name = escapeHtml($row['client_name']);
$client_name_truncated = escapeHtml(truncate($row['client_name'], 7));
$client_is_lead = intval($row['client_lead']);
$client_type = escapeHtml($row['client_type']);
$client_website = escapeHtml($row['client_website']);