up690539 / gdata-samples

Automatically exported from code.google.com/p/gdata-samples
0 stars 0 forks source link

hybrid -> index.php -> $_REQUEST['openid_ext2_request_token'] is urlencoded #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hybrid -> index.php (r180)-> $_REQUEST['openid_ext2_request_token'] is 
urlencoded 

When I got request_token with char "/" I got response: 
Token invalid - Invalid AuthSub token.

To fix it just change line 91 to:
$request_token = urldecode(@$_REQUEST['openid_ext2_request_token']);

Original issue reported on code.google.com by arek.f...@gmail.com on 10 Jun 2009 at 4:11

GoogleCodeExporter commented 8 years ago
If the above is correct, it should be rawurldecode() to properly decode spaces 
("+"
vs "%20")

Original comment by norb...@mocsnik.hu on 28 Oct 2009 at 4:44

GoogleCodeExporter commented 8 years ago
Has anyone tried this against a token that has these characters? If so, feel 
free to 
submit a patch (no matter how trivial it is :)).

Original comment by ericbide...@gmail.com on 28 Oct 2009 at 10:20

GoogleCodeExporter commented 8 years ago
I lucked out and got such a token :)

So, patch attached using http://code.google.com/u/@UBZQRlNYBRNAXQF8/ 's 
solution 
above.  It works for me.

Original comment by bregens...@gmail.com on 17 Feb 2010 at 5:11

Attachments:

GoogleCodeExporter commented 8 years ago
i had Fatal error: require_once() [function.require]: Failed opening required 
'Zend/Loader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') line 25....

can someone help me ..my mail box is fresh2g6@yahoo.com ...i need some help to 
make it work ..i used the hybrid sample data

Original comment by Isreal.l...@gmail.com on 2 Apr 2011 at 6:06