PHP Classes

Apparent bug in oauth_client.php??

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  Apparent bug in oauth_client.php??  >  (Un) Subscribe thread alerts  
Subject:Apparent bug in oauth_client.php??
Summary:Redirection not happening for google login
Messages:2
Author:Scott Howell
Date:2015-03-10 00:48:01
 

  1. Apparent bug in oauth_client.php??   Reply   Report abuse  
Picture of Scott Howell Scott Howell - 2015-03-10 00:48:01
I have discovered what appears to be a bug, that has solved an issue I was having with login_with_google.php

oauth_client.php:
<pre>
Function Process()
{
if(!$this->CheckAccessToken($redirect_url))
return false;
if(IsSet($redirect_url))
{
$this->Redirect($url);
$this->exit = true;
}
return true;
}
</pre>
Redirect function should use "$redirect_url":
<pre>
Function Process()
{
if(!$this->CheckAccessToken($redirect_url))
return false;
if(IsSet($redirect_url))
{
$this->Redirect($redirect_url);
$this->exit = true;
}
return true;
}

</pre>

  2. Re: Apparent bug in oauth_client.php??   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-03-10 01:55:27 - In reply to message 1 from Scott Howell
Yes, I spotted it right away but only now I made time to upload it. Thanks for the heads up.