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 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:
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)

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC