File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed
adminhtml/templates/tabs/fieldset Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ jQuery(function($) {
62
62
$('body').trigger(
63
63
'refreshJsList',
64
64
{
65
- jsList: <?= $ block -> escapeJs ( $ this ->helper ('Magento\Framework\Json\Helper\Data ' )->jsonEncode ($ block ->getJsFiles () )) ?>
65
+ jsList: <?= /* @noEscape */ $ this ->helper ('Magento\Framework\Json\Helper\Data ' )->jsonEncode ($ block ->getJsFiles ()) ?>
66
66
}
67
67
);
68
68
});
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
?>
7
- <?= $ block ->getMiscellaneousHtml ();
7
+ <?= /* @noEscape */ $ block ->getMiscellaneousHtml ();
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ $storeName = $block->getThemeName() ? $block->getThemeName() : $block->getLogoAl
20
20
<img src="<?= $ block ->escapeUrl ($ block ->getLogoSrc ()) ?> "
21
21
title="<?= $ block ->escapeHtmlAttr ($ block ->getLogoAlt ()) ?> "
22
22
alt="<?= $ block ->escapeHtmlAttr ($ block ->getLogoAlt ()) ?> "
23
- <?= $ block ->escapeHtml ( $ block -> getLogoWidth () ? 'width=" ' . $ block ->getLogoWidth () . '" ' : '' ) ?>
24
- <?= $ block ->escapeHtml ( $ block -> getLogoHeight () ? 'height=" ' . $ block ->getLogoHeight () . '" ' : '' ) ?>
23
+ <?= $ block ->getLogoWidth () ? 'width=" ' . $ block ->escapeHtmlAttr ( $ block -> getLogoWidth ()) . '" ' : '' ?>
24
+ <?= $ block ->getLogoHeight () ? 'height=" ' . $ block ->escapeHtmlAttr ( $ block -> getLogoHeight ()) . '" ' : '' ?>
25
25
/>
26
26
</a>
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- $ attributes = $ block ->getCssClass () ? ' class=" ' . $ block ->getCssClass () . '" ' : '' ;
7
+ // @codingStandardsIgnoreFile
8
+
9
+ $ attributes = $ block ->getCssClass () ? ' class=" ' . $ block ->escapeHtmlAttr ($ block ->getCssClass ()) . '" ' : '' ;
8
10
$ attr = $ block ->getAttributes ();
9
11
if (!empty ($ attr )) {
10
12
foreach ($ block ->getAttributes () as $ attribute => $ value ) {
11
- $ attributes .= ' ' . $ attribute . '=" ' . $ value . '" ' ;
13
+ $ attributes .= ' ' . $ block -> escapeHtml ( $ attribute) . '=" ' . $ block -> escapeHtmlAttr ( $ value) . '" ' ;
12
14
}
13
15
}
14
- ?>
15
- <?=
16
- '< '
16
+ /* @noEscape */ echo '< '
17
17
. $ block ->escapeHtml ($ block ->getTag ())
18
- . $ block -> escapeHtml ( $ attributes)
18
+ . $ attributes
19
19
. '> '
20
20
. $ block ->escapeHtml ($ block ->getText ())
21
21
. '</ '
Original file line number Diff line number Diff line change 8
8
* @var \Magento\Ui\Component\Form $block
9
9
*/
10
10
?>
11
- <?= $ block ->escapeHtml ( $ block -> renderChildComponent ('before_form ' ) ) ?>
11
+ <?= /* @noEscape */ $ block ->renderChildComponent ('before_form ' ) ?>
12
12
<div data-role="spinner"
13
13
data-component="<?= $ block ->escapeHtmlAttr ($ block ->getName ()) ?> .areas"
14
14
class="admin__data-grid-loading-mask">
18
18
class="entry-edit form-inline">
19
19
<!-- ko template: getTemplate() --><!-- /ko -->
20
20
</div>
21
- <?= $ block ->escapeHtml ( $ block -> renderChildComponent ('after_form ' ) ) ?>
21
+ <?= /* @noEscape */ $ block ->renderChildComponent ('after_form ' ) ?>
Original file line number Diff line number Diff line change 11
11
<?php if ($ block ->isLoggingEnabled ()): ?>
12
12
<script>
13
13
window.onerror = function(msg, url, line) {
14
- var key = "<?= $ block ->escapeHtmlAttr ($ block ->getSessionStorageKey ()) ?> ";
14
+ var key = "<?= $ block ->escapeJs ($ block ->getSessionStorageKey ()) ?> ";
15
15
var errors = {};
16
16
if (sessionStorage.getItem(key)) {
17
17
errors = JSON.parse(sessionStorage.getItem(key));
You can’t perform that action at this time.
0 commit comments