Skip to content

Commit

Permalink
Merge pull request #14 from kongmingstrap/BugFixURLCallback
Browse files Browse the repository at this point in the history
Fix URL callback issue
  • Loading branch information
baztokyo committed Jan 29, 2013
2 parents 584019b + b498086 commit 2d92d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BZFoursquare/BZFoursquare.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ - (BOOL)startAuthorization {
}

- (BOOL)handleOpenURL:(NSURL *)url {
if (![[url absoluteString] hasPrefix:callbackURL_]) {
if ([[url absoluteString] rangeOfString:callbackURL_ options:(NSCaseInsensitiveSearch|NSAnchoredSearch)].length == 0) {
return NO;
}
NSString *fragment = [url fragment];
Expand Down

0 comments on commit 2d92d41

Please sign in to comment.