Skip to content

Commit 53a6f93

Browse files
committed
Fixed broken resources page when acl has quote (') in title.
1 parent 5a82cc9 commit 53a6f93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Integration/view/adminhtml/templates/resourcetree.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939

4040
<div class="control">
4141
<div class="tree x-tree" data-role="resource-tree" data-mage-init='<?= /* @noEscape */
42-
$block->getJsonSerializer()->serialize([
42+
$block->escapeHtmlAttr($block->getJsonSerializer()->serialize([
4343
'rolesTree' => [
4444
"treeInitData" => $block->getTree(),
4545
"treeInitSelectedData" => $block->getSelectedResources(),
4646
],
47-
]); ?>'>
47+
])); ?>'>
4848
</div>
4949
</div>
5050
</div>

app/code/Magento/User/view/adminhtml/templates/role/edit.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939

4040
<div class="control">
4141
<div class="tree x-tree" data-role="resource-tree" data-mage-init='<?= /* @noEscape */
42-
$block->getJsonSerializer()->serialize([
42+
$block->escapeHtmlAttr($block->getJsonSerializer()->serialize([
4343
'rolesTree' => [
4444
"treeInitData" => $block->getTree(),
4545
"treeInitSelectedData" => $block->getSelectedResources(),
4646
],
47-
]); ?>'>
47+
])); ?>'>
4848
</div>
4949
</div>
5050
</div>

0 commit comments

Comments
 (0)