File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Cms/view/adminhtml/templates/browser/content Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ foreach ($filters as $media_type) {
19
19
20
20
$ resizeConfig = $ block ->getImageUploadConfigData ()->getIsResizeEnabled ()
21
21
? "{action: 'resize', maxWidth: "
22
- . $ block ->getImageUploadMaxWidth ()
22
+ . $ block ->escapeHtml ( $ block -> getImageUploadMaxWidth () )
23
23
. ", maxHeight: "
24
- . $ block ->getImageUploadMaxHeight ()
24
+ . $ block ->escapeHtml ( $ block -> getImageUploadMaxHeight () )
25
25
. "} "
26
26
: "{action: 'resize'} " ;
27
27
?>
@@ -153,7 +153,7 @@ require([
153
153
fileTypes: /^image\/(gif|jpeg|png)$/,
154
154
maxFileSize: <?= (int ) $ block ->getFileSizeService ()->getMaxFileSize () ?> * 10
155
155
},
156
- <?= $ block -> escapeHtml ( $ resizeConfig) ?> ,
156
+ <?= /* @noEscape */ $ resizeConfig ?> ,
157
157
{
158
158
action: 'save'
159
159
}]
You can’t perform that action at this time.
0 commit comments