|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Sat May 18 02:01:33 2024 UTC