Skip to content
Snippets Groups Projects
Commit 63f5851a authored by George Nachman's avatar George Nachman
Browse files

Remove UKCrashReporter's use of your contacts.

parent 332f6703
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -12,7 +12,6 @@
 
#import "UKCrashReporter.h"
#import "UKSystemInfo.h"
#import <AddressBook/AddressBook.h>
 
 
NSString* UKCrashReporterFindTenFiveCrashReportPath( NSString* appName, NSArray *folders );
Loading
Loading
@@ -187,18 +186,7 @@ NSString* gCrashLogString = nil;
userMessage = [[NSLocalizedStringFromTable(@"FEEDBACK_MESSAGE_TEXT",@"UKCrashReporter",@"") mutableCopy] autorelease];
[userMessage replaceOccurrencesOfString: @"%%LONGUSERNAME" withString: NSFullUserName()
options: 0 range: NSMakeRange(0, [userMessage length])];
ABMultiValue* emailAddresses = [[[ABAddressBook sharedAddressBook] me] valueForProperty: kABEmailProperty];
NSString* emailAddr = NSLocalizedStringFromTable(@"MISSING_EMAIL_ADDRESS",@"UKCrashReporter",@"");
if( emailAddresses )
{
NSString* defaultKey = [emailAddresses primaryIdentifier];
if( defaultKey )
{
NSUInteger defaultIndex = [emailAddresses indexForIdentifier: defaultKey];
if( defaultIndex != NSNotFound )
emailAddr = [emailAddresses valueAtIndex: defaultIndex];
}
}
[userMessage replaceOccurrencesOfString: @"%%EMAILADDRESS" withString: emailAddr
options: 0 range: NSMakeRange(0, [userMessage length])];
[informationField setString: userMessage];
Loading
Loading
@@ -258,7 +246,7 @@ NSString* gCrashLogString = nil;
[postRequest setHTTPMethod: @"POST"];
[postRequest setValue: contentType forHTTPHeaderField: @"Content-Type"];
[postRequest setValue: agent forHTTPHeaderField: @"User-Agent"];
NSString *contentLength = [NSString stringWithFormat:@"%lu", [formData length]];
NSString *contentLength = [NSString stringWithFormat:@"%lu", (unsigned long)[formData length]];
[postRequest setValue: contentLength forHTTPHeaderField: @"Content-Length"];
[postRequest setHTTPBody: formData];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment