]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
fix cmd-opt guard
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 28 Aug 2020 11:43:31 +0000 (13:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 28 Aug 2020 11:43:31 +0000 (13:43 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/www/main.js

index 39aef11a3a98f56608f70857222a29d6bf1fc53c..a3713f4932d74680d1ed2fe40100f33277f64201 100644 (file)
@@ -125,7 +125,7 @@ function createTerminal() {
            break;
        case 'cmd':
            params.cmd = decodeURI(cmd);
-           if (cmdOpts !== undefined) {
+           if (cmdOpts !== undefined && cmdOpts !== null && cmdOpts !== "") {
                params['cmd-opts'] = decodeURI(cmdOpts);
            }
            break;