1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

GitHub Security fixes.

This commit is contained in:
Ylian Saint-Hilaire 2020-09-15 17:56:10 -07:00
parent af6fde0bef
commit 43b78d210e
8 changed files with 910 additions and 889 deletions

View file

@ -33,7 +33,8 @@ module.exports.ParseWsman = function (xml) {
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;
r.Body = _ParseWsmanRec(body.childNodes[0]);
}