File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Block/Adminhtml/Product/Attribute/Set
view/adminhtml/templates/catalog/product/attribute/set Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ public function getGroupTreeJson()
233
233
/* @var $node \Magento\Eav\Model\Entity\Attribute\Group */
234
234
foreach ($ groups as $ node ) {
235
235
$ item = [];
236
- $ item ['text ' ] = $ node ->getAttributeGroupName ();
236
+ $ item ['text ' ] = $ this -> escapeHtml ( $ node ->getAttributeGroupName () );
237
237
$ item ['id ' ] = $ node ->getAttributeGroupId ();
238
238
$ item ['cls ' ] = 'folder ' ;
239
239
$ item ['allowDrop ' ] = true ;
@@ -280,7 +280,7 @@ public function getAttributeTreeJson()
280
280
281
281
foreach ($ attributes as $ child ) {
282
282
$ attr = [
283
- 'text ' => $ child ->getAttributeCode (),
283
+ 'text ' => $ this -> escapeHtml ( $ child ->getAttributeCode () ),
284
284
'id ' => $ child ->getAttributeId (),
285
285
'cls ' => 'leaf ' ,
286
286
'allowDrop ' => false ,
Original file line number Diff line number Diff line change 315
315
},
316
316
317
317
validateGroupName : function(name, exceptNodeId) {
318
- name = name.strip();
318
+ name = name.strip().escapeHTML() ;
319
319
var result = true;
320
320
if (name === '') {
321
321
result = false;
You can’t perform that action at this time.
0 commit comments