adium 4055:830a902a0960: Fixed handling of cookies in the Facebo...
commits at adium.im
commits at adium.im
Sat Jul 16 22:49:37 UTC 2011
details: http://hg.adium.im/adium/rev/830a902a0960
revision: 4055:830a902a0960
branch: (none)
author: Evan Schoenberg
date: Sat Jul 16 17:49:16 2011 -0500
Fixed handling of cookies in the Facebook web auth code such that it continues to work if cookie.portList returns an empty NSArray for a nonexistant portList. Fixes #15300
diffs (14 lines):
diff -r 8e8002f5f5b8 -r 830a902a0960 Plugins/Purple Service/AIFacebookXMPPOAuthWebViewWindowController.m
--- a/Plugins/Purple Service/AIFacebookXMPPOAuthWebViewWindowController.m Sat Jul 16 16:27:27 2011 -0500
+++ b/Plugins/Purple Service/AIFacebookXMPPOAuthWebViewWindowController.m Sat Jul 16 17:49:16 2011 -0500
@@ -197,8 +197,8 @@
}
}
- if ([cookie portList] && ![[cookie portList] containsObject:[requestURL port]]) {
- //NSLog(@"****** port mismatch: %@", cookie);
+ if ([[cookie portList] count] && ([requestURL port] != NULL) && ![[cookie portList] containsObject:[requestURL port]]) {
+ //NSLog(@"****** port mismatch: %@ (%@ doesn't have %@)", cookie, cookie.portList, requestURL.port);
continue;
}
More information about the commits
mailing list