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

better implementation for prepare oauth callback url #414

Merged
merged 1 commit into from
May 17, 2016

Conversation

lichunqiang
Copy link
Contributor

@lichunqiang lichunqiang commented May 17, 2016

No description provided.

@@ -71,9 +71,10 @@ public function register(Container $pimple)
private function prepareCallbackUrl($pimple)
{
$callback = $pimple['config']->get('oauth.callback');
if (false !== strpos($callback, ':')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议判断http 而不是 :, 因为端口也是用:号来区别的

@lichunqiang
Copy link
Contributor Author

确实考虑欠佳,不过又厚颜无耻的改了下这段代码

@overtrue overtrue merged commit b6898b8 into w7corp:master May 17, 2016
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.

2 participants