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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 00:01:30 2024 UTC