adium 5919:d06fc982d8ce: Don't log things to the debug log that ...

commits at adium.im commits at adium.im
Thu Apr 2 14:57:50 UTC 2015


details:	http://hg.adium.im/adium/rev/d06fc982d8ce
revision:	5919:d06fc982d8ce
branch:		adium-1.5.11
author:		Thijs Alkemade <me at thijsalkema.de>
date:		Thu Apr 02 16:57:14 2015 +0200

Don't log things to the debug log that might contain access_tokens or refresh_tokens for the user, as they give (limited) access to their account.

diffs (21 lines):

diff -r df415de314d5 -r d06fc982d8ce Plugins/Purple Service/AIPurpleGTalkAccount.m
--- a/Plugins/Purple Service/AIPurpleGTalkAccount.m	Thu Apr 02 08:32:02 2015 +0200
+++ b/Plugins/Purple Service/AIPurpleGTalkAccount.m	Thu Apr 02 16:57:14 2015 +0200
@@ -219,7 +219,7 @@
 - (void)connectionDidFinishLoading:(NSURLConnection *)inConnection {
 	NSDictionary *responseDict = [response objectFromJSONData];
 	
-	AILogWithSignature(@"%@", responseDict);
+	AILogWithSignature(@"");
 	
 	if ([responseDict objectForKey:@"error"]) {
 		// Delete the refresh token, so we don't use it again.
@@ -260,7 +260,7 @@
 				NSData *identityData = [NSData dataFromBase64String:base64EncodedIdentity];
 				NSDictionary *identity = [identityData objectFromJSONData];
 				
-				AILogWithSignature(@"%@", identity);
+				AILogWithSignature(@"");
 				
 				[self filterAndSetUID:[identity objectForKey:@"email"]];
 			}




More information about the commits mailing list