Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL callback issue #12

Closed
pixelrevision opened this issue Jan 25, 2013 · 1 comment
Closed

URL callback issue #12

pixelrevision opened this issue Jan 25, 2013 · 1 comment

Comments

@pixelrevision
Copy link

Not sure if this is an actual issue or not but it could be problematic based on the input on the site. At the moment the site only allows you to put in callback urls as:
type://value
I was having issues with line 104 of BZFoursquare where it was always returning no not recognizing the full path as a prefix:

if (![[url absoluteString] hasPrefix:callbackURL_]) {
    return NO;
}

Adding a category and changing to use this fixes it for me:

NSString *urlString = [url absoluteString];
if([urlString rangeOfString:callbackURL_ options:NSCaseInsensitiveSearch].location == NSNotFound){
    return NO;
} 

Anyway something to have here in case anyone has issues.

@baztokyo
Copy link
Collaborator

Please try 1.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants