From 2020 two factor authentication will be required. I recommend using OTP Auth for this.

Fix packing data/strings

parent 3d8a9663
......@@ -94,7 +94,7 @@ export class CFLBinaryPListComposer {
data += String.fromCharCode(marker);
data += string;
} else if (typeof object === 'string') {
} else if (typeof object === 'object' && object instanceof Buffer) {
if (object.length >= 0xf) {
data += String.fromCharCode(0xf);
data += this.packObject(object.length, depth + 1);
......@@ -103,6 +103,10 @@ export class CFLBinaryPListComposer {
}
data += object;
} else if (typeof object === 'string') {
data += '\x70';
data += Buffer.from(object, 'utf8').toString('binary');
data += '\x00';
} else if (typeof object === 'object' && object instanceof Array || object instanceof Set) {
data += '\xa0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment