Fix formatting of appname in crash reports

Fixes highlights on HockeyApp backend of apps with special chars in their name
This commit is contained in:
Andreas Linde 2014-09-03 14:14:34 +02:00
parent ccd04e1bcd
commit aa5e68536d

View File

@ -1327,8 +1327,8 @@ static PLCrashReporterCallbacks plCrashCallbacks = {
} }
} }
crashXML = [NSString stringWithFormat:@"<crashes><crash><applicationname>%s</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>%@</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"] UTF8String], [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleExecutable"],
appBinaryUUIDs, appBinaryUUIDs,
appBundleIdentifier, appBundleIdentifier,
osVersion, osVersion,