|  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: -
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: public at fzwte dot net
New email:
PHP Version: OS:


 [2015-01-07 13:48 UTC] public at fzwte dot net
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[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"


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

Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 21:01:31 2024 UTC