Skip to content

Commit ddbd03f

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-88657' into 2.3.0-release-pr37
2 parents 02554d8 + 30cc0d4 commit ddbd03f

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Widget/Block/Adminhtml/Widget

1 file changed

+4
-1
lines changed

app/code/Magento/Widget/Block/Adminhtml/Widget/Chooser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*/
1212
namespace Magento\Widget\Block\Adminhtml\Widget;
1313

14+
/**
15+
* Chooser widget block.
16+
*/
1417
class Chooser extends \Magento\Backend\Block\Template
1518
{
1619
/**
@@ -180,7 +183,7 @@ protected function _toHtml()
180183
<label class="widget-option-label" id="' .
181184
$chooserId .
182185
'label">' .
183-
($this->getLabel() ? $this->getLabel() : __(
186+
($this->getLabel() ? $this->escapeHtml($this->getLabel()) : __(
184187
'Not Selected'
185188
)) .
186189
'</label>

0 commit comments

Comments
 (0)