Skip to content
Browse files

Fixes string comparison defect

Summary: summary says it all

Test Plan: a little white-box testing with hackbook

Reviewers: mmarucheck, caabernathy, yariv

Reviewed By: mmarucheck

Differential Revision: https://phabricator.fb.com/D457449
  • Loading branch information...
1 parent cf712da commit 397c0b62b116a9680035e87a07ab936e1c5dfce6 @onebit onebit committed Apr 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Facebook.m
View
4 src/Facebook.m
@@ -697,7 +697,7 @@ - (void)dialog:(NSString *)action
[params setObject:kSDKVersion forKey:@"sdk"];
[params setObject:kRedirectURL forKey:@"redirect_uri"];
- if (action == kLogin) {
+ if ([action isEqualToString:kLogin]) {
[params setObject:@"user_agent" forKey:@"type"];
_fbDialog = [[FBLoginDialog alloc] initWithURL:dialogURL loginParams:params delegate:self];
} else {
@@ -712,7 +712,7 @@ - (void)dialog:(NSString *)action
BOOL invisible = NO;
// frictionless handling for application requests
- if (action == kApprequests) {
+ if ([action isEqualToString:kApprequests]) {
// if frictionless requests are enabled
if (self.isFrictionlessRequestsEnabled) {
// 1. show the "Don't show this again for these friends" checkbox

0 comments on commit 397c0b6

Please sign in to comment.
Something went wrong with that request. Please try again.