[pve-devel] [PATCH widget-toolkit 1/2] ui: add some missing `htmlEncode`s

Friedrich Weber f.weber at proxmox.com
Tue Jul 25 13:52:45 CEST 2023


Signed-off-by: Friedrich Weber <f.weber at proxmox.com>
---
 src/form/NetworkSelector.js | 1 +
 src/node/APTRepositories.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/form/NetworkSelector.js b/src/form/NetworkSelector.js
index 86d394d..ed3a02b 100644
--- a/src/form/NetworkSelector.js
+++ b/src/form/NetworkSelector.js
@@ -123,6 +123,7 @@ Ext.define('Proxmox.form.NetworkSelector', {
 		header: gettext('Comment'),
 		flex: 2,
 		dataIndex: 'comments',
+		renderer: Ext.String.htmlEncode,
 	    },
 	],
     },
diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js
index 53af2c7..4e74da2 100644
--- a/src/node/APTRepositories.js
+++ b/src/node/APTRepositories.js
@@ -361,6 +361,7 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
 	    header: gettext('Comment'),
 	    dataIndex: 'Comment',
 	    flex: 2,
+	    renderer: Ext.String.htmlEncode,
 	},
     ],
 
-- 
2.39.2






More information about the pve-devel mailing list