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

Fixed file corruption when AgentPong is used.

This commit is contained in:
Ylian Saint-Hilaire 2020-04-20 20:12:35 -07:00
parent ae7b8b9c8e
commit 26111b84d2
2 changed files with 5 additions and 3 deletions

View file

@ -6915,7 +6915,7 @@
var p13filetreelocation = [];
function p13gotFiles(data) {
if ((data.length > 0) && (data.charCodeAt(0) != 123)) { p13gotDownloadBinaryData(data); return; }
if ((data.length > 0) && (data.charCodeAt(0) != 123)) { p13gotDownloadBinaryData(data); return; } // This is ok because 4 first bytes is a control value.
//console.log('p13gotFiles', data);
data = JSON.parse(decode_utf8(data));
if (data.action == 'download') { p13gotDownloadCommand(data); return; }