mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 10:43:50 +00:00
Strip invalid characters from plist before attempting to parse (so far just ESC)
This commit is contained in:
1 parent
55b438e8c1
commit
a453412d5b
1 file changed
+5
@@ -121,6 +121,11 @@ ConverterConversionException = @"ConverterConversionException";
|
||||
else
|
||||
plistContents = plistContents.replace(/\<key\>\s*CF\$UID\s*\<\/key\>/g, "<key>CP$UID</key>");
|
||||
|
||||
plistContents = plistContents.replace(/\u001b/g, function(c) {
|
||||
CPLog.warn("Warning: Stripping character 0x"+c.charCodeAt(0).toString(16));
|
||||
return "";
|
||||
});
|
||||
|
||||
return [CPData dataWithRawString:plistContents];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user