1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 04:46:51 +01:00

Bangle.js: ensure we escape char code 16 as it's not 100% foolproof to use

This commit is contained in:
Gordon Williams 2024-09-11 14:17:39 +01:00
parent 721b582b87
commit 53144ff220

View File

@ -414,6 +414,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
else if (ch==10) json.append("\\n");
else if (ch==11) json.append("\\v");
else if (ch==12) json.append("\\f");
else if (ch==16) json.append("\\20"); // DLE - not entirely safe to use
else if (ch==34) json.append("\\\""); // quote
else if (ch==92) json.append("\\\\"); // slash
else if (ch<32 || ch==127 || ch==173 ||