Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IOSLinkedInAPI/LIALinkedInAuthorizationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
self.failureCallback(error);
}
} else {
NSString *receivedState = [self extractGetParameter:@"state" fromURL: requestURL];
NSString *receivedState = [[self extractGetParameter:@"state" fromURL: requestURL] stringByReplacingOccurrencesOfString:@"#!" withString:@""];
//assert that the state is as we expected it to be
if ([receivedState isEqualToString:self.application.state]) {
//extract the code from the url
Expand Down