php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58962 Redirect URL corrupted
Submitted: 2009-11-24 12:42 UTC Modified: 2009-11-26 21:45 UTC
From: steve at rocketmobile dot com Assigned: datibbaw (profile)
Status: Closed Package: oauth (PECL)
PHP Version: 5.1.6 OS: Linux 2.6.18-164.el5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: steve at rocketmobile dot com
New email:
PHP Version: OS:

 

 [2009-11-24 12:42 UTC] steve at rocketmobile dot com
I have an issue with an OAuth::fetch() call for a host that sends a
redirect (twice).  OAuth intercepts the first redirect and sends another
GET.  The host sends a second redirect.  OAuth intercepts the redirect
and sends another GET, but this time there is extraneous data (looks
like there was no NULL termination of the second redirect URL when
constructing the response).

I noticed in the ChangeLog:

0.99.5 - Added support for multiple protocols (Tjerk Meesters)
- Signature generation fix for quoted values
- Added disableSSLChecks and enableSSLChecks (enabled by default)
- Added support for following and signing redirects

Reproduce code:
---------------
$rc = $oa->fetch($url, NULL, OAUTH_HTTP_METHOD_GET, $hdrs);

See trace below

Expected result:
----------------
On second redirect, it should have been

GET /p.p?p=0911060000018859362900 HTTP/1.1
Host: ota.example.com

instead it sent 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-26 21:45 UTC] datibbaw@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Fixed in SVN (trunk, rev: 291334)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 14:01:30 2024 UTC