marig345 / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

OAuthServer::authorizeFinish does not redirect if oauth_callback is given as request parameter #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To fix this issue, extend line 147 in OAuthServer.php :

   $this->session->set('verify_oauth_callback', ($rs['callback_url'] ? $rs['callback_url'] : $this-
>getParam('oauth_callback', true)));

like this:

   $this->session->set('verify_oauth_callback', ($rs['callback_url'] && $rs['callback_url'] != 'oob' ? 
$rs['callback_url'] : $this->getParam('oauth_callback', true)));

Thanks! André

Original issue reported on code.google.com by fiedler....@gmail.com on 8 May 2010 at 5:03

GoogleCodeExporter commented 9 years ago
Fixed too, thanks again! I love your issues with patches :)

Original comment by brunobg%...@gtempaccount.com on 10 May 2010 at 1:10