Skip to content

Commit

Permalink
Fixes string comparison defect
Browse files Browse the repository at this point in the history
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
onebit committed Apr 25, 2012
1 parent cf712da commit 397c0b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Facebook.m
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 397c0b6

Please sign in to comment.