File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Variable/view/adminhtml/web Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ window.Variables = {
37
37
this . variablesContent = '<ul class="insert-variable">' ;
38
38
variables . each ( function ( variableGroup ) {
39
39
if ( variableGroup . label && variableGroup . value ) {
40
- this . variablesContent += '<li><b>' + variableGroup . label + '</b></li>' ;
40
+ this . variablesContent += '<li><b>' + variableGroup . label . escapeHTML ( ) + '</b></li>' ;
41
41
( variableGroup . value ) . each ( function ( variable ) {
42
42
if ( variable . value && variable . label ) {
43
43
this . variablesContent += '<li>' +
@@ -72,7 +72,7 @@ window.Variables = {
72
72
} ,
73
73
prepareVariableRow : function ( varValue , varLabel ) {
74
74
var value = ( varValue ) . replace ( / " / g, '"' ) . replace ( / ' / g, '\\'' ) ;
75
- var content = '<a href="#" onclick="' + this . insertFunction + '(\'' + value + '\');return false;">' + varLabel + '</a>' ;
75
+ var content = '<a href="#" onclick="' + this . insertFunction + '(\'' + value . escapeHTML ( ) + '\');return false;">' + varLabel . escapeHTML ( ) + '</a>' ;
76
76
return content ;
77
77
} ,
78
78
insertVariable : function ( value ) {
You can’t perform that action at this time.
0 commit comments