Skip to content

Commit

Permalink
[Admin] DataObject - Escape class definitions group properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 committed Feb 7, 2022
1 parent 6ccb5c1 commit b5a9ad6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -861,7 +861,7 @@ public function fieldcollectionTreeAction(Request $request, EventDispatcherInter
if (!isset($groups[$item->getGroup()])) {
$groups[$item->getGroup()] = [
'id' => 'group_' . $item->getKey(),
'text' => $item->getGroup(),
'text' => htmlspecialchars($item->getGroup()),
'expandable' => true,
'leaf' => false,
'allowChildren' => true,
Expand Down Expand Up @@ -1266,7 +1266,7 @@ public function objectbrickTreeAction(Request $request, EventDispatcherInterface
if (!isset($groups[$item->getGroup()])) {
$groups[$item->getGroup()] = [
'id' => 'group_' . $item->getKey(),
'text' => $item->getGroup(),
'text' => htmlspecialchars($item->getGroup()),
'expandable' => true,
'leaf' => false,
'allowChildren' => true,
Expand Down

0 comments on commit b5a9ad6

Please sign in to comment.