Skip to content

Commit

Permalink
fix/[de,pe,de]: xss
Browse files Browse the repository at this point in the history
  • Loading branch information
sekiju committed Sep 18, 2024
1 parent 39197ed commit 5e43885
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/documenteditor/main/app/view/FileMenuPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -1962,9 +1962,9 @@ define([], function () {
}

return '<tr data-custom-property>' +
'<td class="left"><label>' + name + '</label></td>' +
'<td class="left"><label>' + Common.Utils.String.htmlEncode(name) + '</label></td>' +
'<td class="right"><div class="custom-property-wrapper">' +
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + Common.Utils.String.htmlEncode(value) +'">' +
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'">' +
'<div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div>' +
'</div></td></tr>';
},
Expand Down
4 changes: 2 additions & 2 deletions apps/presentationeditor/main/app/view/FileMenuPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -1450,9 +1450,9 @@ define([], function () {
}

return '<tr data-custom-property>' +
'<td class="left"><label>' + name + '</label></td>' +
'<td class="left"><label>' + Common.Utils.String.htmlEncode(name) + '</label></td>' +
'<td class="right"><div class="custom-property-wrapper">' +
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + Common.Utils.String.htmlEncode(value) +'">' +
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'">' +
'<div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div>' +
'</div></td></tr>';
},
Expand Down
4 changes: 2 additions & 2 deletions apps/spreadsheeteditor/main/app/view/FileMenuPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -1960,9 +1960,9 @@ define([], function () {
}

return '<tr data-custom-property>' +
'<td class="left"><label>' + name + '</label></td>' +
'<td class="left"><label>' + Common.Utils.String.htmlEncode(name) + '</label></td>' +
'<td class="right"><div class="custom-property-wrapper">' +
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + Common.Utils.String.htmlEncode(value) +'">' +
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'">' +
'<div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div>' +
'</div></td></tr>';
},
Expand Down

0 comments on commit 5e43885

Please sign in to comment.