Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 2491b51

Browse files
committed
Fixed potentially XSS vulnerability
1 parent 0c8221b commit 2491b51

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Cms/view/adminhtml/templates/browser/content

1 file changed

+2
-2
lines changed

app/code/Magento/Cms/view/adminhtml/templates/browser/content/uploader.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ require([
101101
maxFileSize: <?= (int) $block->getFileSizeService()->getMaxFileSize() ?> * 10
102102
}, {
103103
action: 'resize',
104-
maxWidth: <?= $block->getUploadImageMaxWidth() ?> ,
105-
maxHeight: <?= $block->getUploadImageMaxHeight() ?>
104+
maxWidth: <?= (int) $block->getUploadImageMaxWidth() ?> ,
105+
maxHeight: <?= (int) $block->getUploadImageMaxHeight() ?>
106106
}, {
107107
action: 'save'
108108
}]

0 commit comments

Comments
 (0)