Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Encapsulate app name in CDATA when sending crash
Browse files Browse the repository at this point in the history
In case an app name looks like an XML tag, this ensures that it can be processed correctly on the server by the XML reader
  • Loading branch information
DerAndereAndi committed Oct 31, 2014
1 parent 3356b1d commit 1b2dad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/BITCrashManager.m
Expand Up @@ -1330,7 +1330,7 @@ - (void)sendNextCrashReport {
}
}

crashXML = [NSString stringWithFormat:@"<crashes><crash><applicationname>%@</applicationname><uuids>%@</uuids><bundleidentifier>%@</bundleidentifier><systemversion>%@</systemversion><platform>%@</platform><senderversion>%@</senderversion><version>%@</version><uuid>%@</uuid><log><![CDATA[%@]]></log><userid>%@</userid><username>%@</username><contact>%@</contact><installstring>%@</installstring><description><![CDATA[%@]]></description></crash></crashes>",
crashXML = [NSString stringWithFormat:@"<crashes><crash><applicationname><![CDATA[%@]]></applicationname><uuids>%@</uuids><bundleidentifier>%@</bundleidentifier><systemversion>%@</systemversion><platform>%@</platform><senderversion>%@</senderversion><version>%@</version><uuid>%@</uuid><log><![CDATA[%@]]></log><userid>%@</userid><username>%@</username><contact>%@</contact><installstring>%@</installstring><description><![CDATA[%@]]></description></crash></crashes>",
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleExecutable"],
appBinaryUUIDs,
appBundleIdentifier,
Expand Down

0 comments on commit 1b2dad7

Please sign in to comment.