php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68766 OAuthProvider does not handle array parameters
Submitted: 2015-01-07 13:48 UTC Modified: -
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: public at fzwte dot net Assigned:
Status: Open Package: oauth (PECL)
PHP Version: Irrelevant OS:
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: public at fzwte dot net
New email:
PHP Version: OS:

 

 [2015-01-07 13:48 UTC] public at fzwte dot net
Description:
------------
OAuthProvider does not handle array parameters.

provider.c extracts GET and POST parameters but doesn't serializes arrays, so the signature that is generated for verification is invalid.


Expected result:
----------------
Requesting http://www.example.com/?foo=bar&a[0]=33&a[1]=42&a[3]=stuff&b[0][aa]=bb&b[0][cc]=dd should build the parameter list including:

"foo" => "bar",
"a[0]" => "33",
"a[1]" => "42",
"a[3]" => "stuff",
"b[0][aa]" => "bb",
"b[0][cc]" => "dd"

and inject that into the base string, along with the OAuth parameters.

Actual result:
--------------
Included parameter list is:

"foo" => "bar",
"a" => "Array",
"b" => "Array"

Patches

oauth_provider_handles_array_parameters.patch (last revision 2015-01-07 13:48 UTC by public at fzwte dot net)

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Feb 16 17:01:29 2025 UTC