]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
add missing htmlEncodes
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 30 Apr 2020 14:03:57 +0000 (16:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 May 2020 14:55:25 +0000 (16:55 +0200)
username can include some special characters, so we have
to escape them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
window/TaskViewer.js

index 347542e94dc17a5b2fd5ff5e7d8cd921b371c7ef..bbbf716328209e1e38b49bcabff9a69fa88cc782 100644 (file)
@@ -127,6 +127,7 @@ Ext.define('Proxmox.window.TaskViewer', {
            },
            user: {
                header: gettext('User name'),
+               renderer: Ext.String.htmlEncode,
                required: true
            },
            node: {
@@ -146,7 +147,8 @@ Ext.define('Proxmox.window.TaskViewer', {
                renderer: Proxmox.Utils.render_timestamp
            },
            upid: {
-               header: gettext('Unique task ID')
+               header: gettext('Unique task ID'),
+               renderer: Ext.String.htmlEncode,
            }
        };