Skip to content

Commit 61e2882

Browse files
authored
Merge commit from fork
escape entry type label
2 parents 9d9b46a + 62c4fb3 commit 61e2882

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Fixed a bug where it wasn’t possible to copy/paste nested entries within Matrix fields set to the inline-editable blocks view mode, for unpublished owner elements. ([#18185](https://github.com/craftcms/cms/pull/18185))
1717
- Fixed a bug where custom fields’ checkboxes weren’t getting removed from field layouts’ “Card Attributes” lists when removed from the layout.
1818
- Fixed an SSRF vulnerability. (GHSA-96pq-hxpw-rgh8)
19+
- Fixed an XSS vulnerability. (GHSA-7pr4-wx9w-mqwr)
1920

2021
## 5.8.21 - 2025-12-04
2122

src/services/Entries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,7 @@ public function getTableData(
19611961
$usages = $this->allEntryTypeUsages();
19621962

19631963
foreach ($entryTypes as $entryType) {
1964-
$label = $entryType->getUiLabel();
1964+
$label = Html::encode($entryType->getUiLabel());
19651965
$chipCellContent = Html::beginTag('div', ['class' => 'inline-chips']) .
19661966
Cp::chipHtml($entryType, [
19671967
'labelHtml' => Html::a($label, $entryType->getCpEditUrl(), [

0 commit comments

Comments
 (0)