Skip to content

Commit

Permalink
Merge pull request #71 from adamcjohnson/patch-1
Browse files Browse the repository at this point in the history
Update LIALinkedInAuthorizationViewController.m
  • Loading branch information
jeyben committed May 27, 2016
2 parents ccf8e34 + 9441128 commit 53fa6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IOSLinkedInAPI/LIALinkedInAuthorizationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
} else {
NSString *receivedState = [self extractGetParameter:@"state" fromURLString: url];
//assert that the state is as we expected it to be
if ([self.application.state isEqualToString:receivedState]) {
if ([receivedState containsString:self.application.state]) {
//extract the code from the url
NSString *authorizationCode = [self extractGetParameter:@"code" fromURLString: url];
self.successCallback(authorizationCode);
Expand Down

0 comments on commit 53fa6d6

Please sign in to comment.