Output has been encoded to avoid parsing and executing HTML in Categories List.

Observations fixed

More observations fixed

Last observations fixed

Renderer name changed and code style corrected
This commit is contained in:
Martin Laguna
2022-11-15 14:07:44 -04:00
parent fe08e65a0d
commit 6ec830ba2c

View File

@@ -181,7 +181,7 @@ Ext.onReady(function(){
}, },
columns: [ columns: [
{id:'CATEGORY_UID', dataIndex: 'CATEGORY_UID', hidden:true, hideable:false}, {id:'CATEGORY_UID', dataIndex: 'CATEGORY_UID', hidden:true, hideable:false},
{header: _('ID_CATEGORY_NAME'), dataIndex: 'CATEGORY_NAME', width: 500, hidden:false, align:'left'}, {header: _('ID_CATEGORY_NAME'), dataIndex: 'CATEGORY_NAME', width: 500, hidden:false, renderer: categoryNameRenderer, align:'left'},
{header: _('ID_PROCESSES'), dataIndex: 'TOTAL_PROCESSES', width: 100, hidden: false, align: 'center'} {header: _('ID_PROCESSES'), dataIndex: 'TOTAL_PROCESSES', width: 100, hidden: false, align: 'center'}
] ]
}); });
@@ -282,6 +282,11 @@ Ext.onReady(function(){
}); });
}); });
//Sanitize output
categoryNameRenderer = function (value) {
return Ext.util.Format.htmlEncode(value);
};
//Funtion Handles Context Menu Opening //Funtion Handles Context Menu Opening
onMessageContextMenu = function (grid, rowIndex, e) { onMessageContextMenu = function (grid, rowIndex, e) {
e.stopEvent(); e.stopEvent();