[pve-devel] [PATCH widget-toolkit] htmlEncode DNS fields

Dominik Csapak d.csapak at proxmox.com
Fri Oct 19 12:36:21 CEST 2018


and change to a better style of the properties

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 node/DNSView.js | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/node/DNSView.js b/node/DNSView.js
index b0f0973..29afe9f 100644
--- a/node/DNSView.js
+++ b/node/DNSView.js
@@ -22,10 +22,24 @@ Ext.define('Proxmox.node.DNSView', {
 	    interval: 1000,
 	    run_editor: run_editor,
 	    rows: {
-		search: { header: 'Search domain', required: true },
-		dns1: { header: gettext('DNS server') + " 1", required: true },
-		dns2: { header: gettext('DNS server') + " 2" },
-		dns3: { header: gettext('DNS server') + " 3" }
+		search: {
+		    header: 'Search domain',
+		    required: true,
+		    renderer: Ext.htmlEncode
+		},
+		dns1: {
+		    header: gettext('DNS server') + " 1",
+		    required: true,
+		    renderer: Ext.htmlEncode
+		},
+		dns2: {
+		    header: gettext('DNS server') + " 2",
+		    renderer: Ext.htmlEncode
+		},
+		dns3: {
+		    header: gettext('DNS server') + " 3",
+		    renderer: Ext.htmlEncode
+		}
 	    },
 	    tbar: [
 		{
-- 
2.11.0





More information about the pve-devel mailing list