mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-16 22:37:54 +00:00
mail filter: properly html-encode rule names
Rule names were not HTML-encoded in the rule overview. While some encoding did happen, it was only on the first load for the info panel on the right hand side, which was overriden as soon as the edit window was opened/closed again. The variable binding now gets HTML-encoded automatically, and the renderer for rule names has been set to Ext.htmlEncode. Signed-off-by: Leo Nunner <l.nunner@proxmox.com> [ T: rework commit message a bit (mostly subject) ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0b525fba79
commit
df2a647a72
@ -216,6 +216,7 @@ Ext.define('PMG.RulesConfiguration', {
|
||||
text: 'Name',
|
||||
dataIndex: 'name',
|
||||
flex: 1,
|
||||
renderer: Ext.htmlEncode,
|
||||
},
|
||||
{
|
||||
text: 'Priority',
|
||||
|
@ -86,7 +86,6 @@ Ext.define('PMG.RuleInfo', {
|
||||
viewmodel.set('selectedRule', null);
|
||||
viewmodel.get('objects').setData([]);
|
||||
} else {
|
||||
ruledata.name = Ext.String.htmlEncode(ruledata.name);
|
||||
viewmodel.set('selectedRule', ruledata);
|
||||
|
||||
var data = [];
|
||||
@ -234,7 +233,7 @@ Ext.define('PMG.RuleInfo', {
|
||||
},
|
||||
bind: {
|
||||
data: {
|
||||
name: '{selectedRule.name}',
|
||||
name: '{selectedRule.name:htmlEncode}',
|
||||
priority: '{selectedRule.priority}',
|
||||
active: '{selectedRule.active}',
|
||||
direction: '{selectedRule.direction}',
|
||||
|
Loading…
Reference in New Issue
Block a user