Hardened against potential XSS injection in table columns

This commit is contained in:
Jan Böhmer 2026-06-14 12:08:25 +02:00
parent c9dd27712c
commit 11b41ee66a
2 changed files with 4 additions and 4 deletions

View file

@ -87,9 +87,9 @@ class IconLinkColumn extends AbstractColumn
return sprintf(
'<a class="btn btn-primary btn-sm %s" href="%s" title="%s"><i class="%s"></i></a>',
$disabled ? 'disabled' : '',
$href,
$title,
$icon
htmlspecialchars($href),
htmlspecialchars($title ?? ''),
htmlspecialchars($icon ?? '')
);
}