SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/app/code/Magento/Integration/view/adminhtml/templates/resourcetree.phtml b/app/code/Magento/Integration/view/adminhtml/templates/resourcetree.phtml
  2. index 7d6c27954d83..bf90d15917f4 100644
  3. --- a/app/code/Magento/Integration/view/adminhtml/templates/resourcetree.phtml
  4. +++ b/app/code/Magento/Integration/view/adminhtml/templates/resourcetree.phtml
  5. @@ -39,12 +39,12 @@
  6.  
  7.          <div class="control">
  8.              <div class="tree x-tree" data-role="resource-tree" data-mage-init='<?= /* @noEscape */
  9. -                $block->getJsonSerializer()->serialize([
  10. +                $block->escapeHtmlAttr($block->getJsonSerializer()->serialize([
  11.                      'rolesTree' => [
  12.                          "treeInitData" => $block->getTree(),
  13.                          "treeInitSelectedData" => $block->getSelectedResources(),
  14.                      ],
  15. -                ]); ?>'>
  16. +                ])); ?>'>
  17.              </div>
  18.          </div>
  19.      </div>
  20. diff --git a/app/code/Magento/User/view/adminhtml/templates/role/edit.phtml b/app/code/Magento/User/view/adminhtml/templates/role/edit.phtml
  21. index edee167dc1b8..6fa3dba7b301 100644
  22. --- a/app/code/Magento/User/view/adminhtml/templates/role/edit.phtml
  23. +++ b/app/code/Magento/User/view/adminhtml/templates/role/edit.phtml
  24. @@ -39,12 +39,12 @@
  25.  
  26.          <div class="control">
  27.              <div class="tree x-tree" data-role="resource-tree" data-mage-init='<?= /* @noEscape */
  28. -                $block->getJsonSerializer()->serialize([
  29. +                $block->escapeHtmlAttr($block->getJsonSerializer()->serialize([
  30.                      'rolesTree' => [
  31.                          "treeInitData" => $block->getTree(),
  32.                          "treeInitSelectedData" => $block->getSelectedResources(),
  33.                      ],
  34. -                ]); ?>'>
  35. +                ])); ?>'>
  36.              </div>
  37.          </div>
  38.      </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top