1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2025-12-06 06:03:20 +00:00

Window open security fix.

This commit is contained in:
Ylian Saint-Hilaire
2020-09-22 13:35:27 -07:00
parent 84ee72d723
commit f91e8f359b
3 changed files with 7 additions and 6 deletions

View File

@@ -124,7 +124,8 @@ var WsmanStackCreateService = function (host, port, user, pass, tls, extra) {
if (!body) return null;
if (body.childNodes.length > 0) {
t = body.childNodes[0].localName;
if (t.indexOf('_OUTPUT') == t.length - 7) { t = t.substring(0, t.length - 7); }
var x = t.indexOf('_OUTPUT');
if ((x != -1) && (x == (t.length - 7))) { t = t.substring(0, t.length - 7); }
r.Header['Method'] = t;
try {
r.Body = _ParseWsmanRec(body.childNodes[0]);