File tree Expand file tree Collapse file tree 6 files changed +16
-20
lines changed
app/code/Magento/ImportExport/view/adminhtml/templates Expand file tree Collapse file tree 6 files changed +16
-20
lines changed Original file line number Diff line number Diff line change 6
6
?>
7
7
<div class="fieldset">
8
8
<div class="legend">
9
- <span><?= /* @escapeNotVerified */ __ ('Status ' ) ?> </span>
9
+ <span><?= $ block -> escapeHtml ( __ ('Status ' ) ) ?> </span>
10
10
</div><br>
11
11
<div class="messages">
12
12
<div class="message message-success success">
13
- <div><?= /* @escapeNotVerified */ $ block ->getStatusMessage () ?> </div>
13
+ <div><?= $ block ->escapeHtml ( $ block -> getStatusMessage () ) ?> </div>
14
14
</div>
15
15
</div>
16
16
</div>
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
-
7
- // @codingStandardsIgnoreFile
8
6
?>
9
7
<fieldset class="admin__fieldset" id="export_filter_container" style="display:none;">
10
8
<legend class="admin__legend">
11
- <span><?= /* @escapeNotVerified */ __ ('Entity Attributes ' ) ?> </span>
9
+ <span><?= $ block -> escapeHtml ( __ ('Entity Attributes ' ) ) ?> </span>
12
10
</legend>
13
11
<br />
14
- <form id="export_filter_form" action="<?= /* @escapeNotVerified */ $ block ->getUrl ('*/*/export ' ) ?> " method="post">
15
- <input name="form_key" type="hidden" value="<?= /* @escapeNotVerified */ $ block ->getFormKey () ?> " />
12
+ <form id="export_filter_form" action="<?= $ block ->escapeUrl ( $ block -> getUrl ('*/*/export ' ) ) ?> " method="post">
13
+ <input name="form_key" type="hidden" value="<?= /* @noEscape */ $ block ->getFormKey () ?> " />
16
14
<div id="export_filter_grid_container"><!-- --></div>
17
15
</form>
18
- <button class="action- scalable" type="button" onclick="getFile();"><span><?php
19
- /* @escapeNotVerified */ echo __ ('Continue ' )
16
+ <button class="action- scalable" type="button" onclick="getFile();"><span><?=
17
+ $ block -> escapeHtml ( __ ('Continue ' ) )
20
18
?> </span></button>
21
19
</fieldset>
22
20
<script>
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ require([
44
44
*/
45
45
getFilter: function() {
46
46
if ($('entity') && $F('entity')) {
47
- var url = "<?= /* @escapeNotVerified */ $ block ->getUrl ('*/*/getFilter ' ) ?> ";
47
+ var url = "<?= $ block ->escapeJs ( $ block -> escapeUrl ( $ block -> getUrl ('*/*/getFilter ' )) ) ?> ";
48
48
var entity = $F('entity');
49
49
if (entity != this.previousGridEntity) {
50
50
this.previousGridEntity = entity;
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
-
7
- // @codingStandardsIgnoreFile
8
6
?>
9
7
<div class="entry-edit fieldset" id="import_validation_container" style="display:none;">
10
8
<div class="entry-edit-head legend">
11
9
<span class="icon-head head-edit-form fieldset-legend"
12
- id="import_validation_container_header"><?= /* @escapeNotVerified */ __ ('Validation Results ' ) ?> </span>
10
+ id="import_validation_container_header"><?= $ block -> escapeHtml ( __ ('Validation Results ' ) ) ?> </span>
13
11
</div><br>
14
12
<div id="import_validation_messages" class="fieldset"><!-- --></div>
15
13
</div>
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
-
7
- // @codingStandardsIgnoreFile
8
6
?>
9
7
<?php
10
8
/** @var $block \Magento\ImportExport\Block\Adminhtml\Import\Edit\Before */
@@ -29,25 +27,27 @@ require([
29
27
* List of existing behavior sets
30
28
* @type {Array}
31
29
*/
32
- uniqueBehaviors: <?= /* @escapeNotVerified */ $ block ->getUniqueBehaviors () ?> ,
30
+ uniqueBehaviors: <?= /* @noEscape */ $ block ->getUniqueBehaviors () ?> ,
33
31
34
32
/**
35
33
* Behaviour codes for import entities
36
34
* @type {Array}
37
35
*/
38
- entityBehaviors: <?= /* @escapeNotVerified */ $ block ->getEntityBehaviors () ?> ,
36
+ entityBehaviors: <?= /* @noEscape */ $ block ->getEntityBehaviors () ?> ,
39
37
40
38
/**
41
39
* Behaviour notes for import entities
42
40
* @type {Array}
43
41
*/
44
- entityBehaviorsNotes: <?= /* @escapeNotVerified */ $ block ->getEntityBehaviorsNotes () ?> ,
42
+ entityBehaviorsNotes: <?= /* @noEscape */ $ block ->getEntityBehaviorsNotes () ?> ,
45
43
46
44
/**
47
45
* Base url
48
46
* @type {string}
49
47
*/
50
- sampleFilesBaseUrl: '<?= /* @escapeNotVerified */ $ block ->getUrl ('*/*/download/ ' , ['filename ' => 'entity-name ' ]) ?> ',
48
+ sampleFilesBaseUrl: '<?= $ block ->escapeJs (
49
+ $ block ->escapeUrl ($ block ->getUrl ('*/*/download/ ' , ['filename ' => 'entity-name ' ]))
50
+ ) ?> ',
51
51
52
52
/**
53
53
* Reset selected index
Original file line number Diff line number Diff line change 6
6
?>
7
7
<script type='text/javascript'>
8
8
//<![CDATA[
9
- top.varienImport.postToFrameComplete(<?= /* @escapeNotVerified */ $ block ->getResponseJson () ?> );
9
+ top.varienImport.postToFrameComplete(<?= /* @noEscape */ $ block ->getResponseJson () ?> );
10
10
//]]>
11
11
</script>
You can’t perform that action at this time.
0 commit comments