(fix) make sure we escape control chars

This commit is contained in:
Ludovic Marcotte
2016-01-22 12:37:00 -05:00
parent f1873edf21
commit 9ba7425e56
+1 -1
View File
@@ -75,7 +75,7 @@ static NSArray *easCommandParameters = nil;
escapeCount++;
break;
default:
if (chars[i] > 127)
if (chars[i] < 0x20 || chars[i] > 127)
escapeCount++;
break;
}