Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array of Array #131

Open
GoogleCodeExporter opened this issue Dec 12, 2015 · 0 comments
Open

Array of Array #131

GoogleCodeExporter opened this issue Dec 12, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Function getNormalizedParams() in OAuthRequest.php not support Array of Array 
variable.

if i have variable like bellow

$body = array(
    "content" => "test content",
    "is_sanitize" => true,
    "sanitize_replacement" => "***",
    "meta" => array(
        "name" => "another",
        "email" => "[email protected]"
        )
    );

when using getNormalizedParams() will return

content=test 
content&is_sanitize=1&meta=another&[email protected]&sanitize_replacement=*
**

i lose my key(name and email), but when i use http_build_query, it return

content=content+test&is_sanitize=1&sanitize_replacement=%2A%2A%2A&meta%5Bname%5D
=another&meta%5Bemail%5D=another%40email.com

what i want to mention is when i have Array of Array and using this library, i 
will lose any Array inside variable when generating a base query to make a 
signature, and this will cause a possible collation.

From the spec http://tools.ietf.org/html/rfc3986 say that all variable must be 
added to make a signature.

actually i'm newbie, so may be i already understand wrong with this issue.

Thanks

Original issue reported on code.google.com by [email protected] on 17 Dec 2012 at 4:24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant