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

Fixing OAuth redirect issue #111

Merged
merged 1 commit into from
Jun 10, 2015

Conversation

JALsnipe
Copy link
Contributor

@JALsnipe JALsnipe commented Jun 2, 2015

The patch fixes the issues discussed in #109. I have added additional regular expressions to prevent the UIWebView from taking the user out of the app when loading any URLs that look like https://accounts.google.com/o/oauth2/ or https://content.googleapis.com/static/proxy.html.

This is mainly a fix for Live Event videos. Tested with Video IDs w-T2LJ_qLiw, nrYHu7hmMK0, and wpZNaYN29xs.

@iulukaya please review and merge.

@JALsnipe
Copy link
Contributor Author

@iulukaya please merge this critical fix. Live Events are broken in the player without this.

@ulukaya
Copy link
Contributor

ulukaya commented Jun 10, 2015

Can you sign a CLA so I can test and merge this?

https://developers.google.com/open-source/cla/individual

We've documented this process here:

https://github.com/youtube/youtube-ios-player-helper/blob/master/CONTRIBUTING.md

ulukaya added a commit that referenced this pull request Jun 10, 2015
@ulukaya ulukaya merged commit 0fabe5c into youtube:master Jun 10, 2015
@JALsnipe
Copy link
Contributor Author

Already signed, thanks for merging!

options:NSRegularExpressionCaseInsensitive
error:&error];
NSTextCheckingResult *staticProxyMatch =
[[staticProxyRegex firstMatchInString:url.absoluteString
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm, this seems to have a syntax error? There's an opening brace too much at the beginning.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I proposed a fix in #116.

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

Successfully merging this pull request may close these issues.

None yet

3 participants