Skip to content

Commit

Permalink
(fix) make sure we escape control chars
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Jan 22, 2016
1 parent f1873ed commit 9ba7425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ActiveSync/NSString+ActiveSync.m
Expand Up @@ -75,7 +75,7 @@ - (NSString *) _stringByEscapingXMLStringUsingCharacters {
escapeCount++;
break;
default:
if (chars[i] > 127)
if (chars[i] < 0x20 || chars[i] > 127)
escapeCount++;
break;
}
Expand Down

0 comments on commit 9ba7425

Please sign in to comment.