Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Values with spaces are encoded incorrectly #1

Open
okainov opened this issue Dec 17, 2018 · 0 comments
Open

Values with spaces are encoded incorrectly #1

okainov opened this issue Dec 17, 2018 · 0 comments

Comments

@okainov
Copy link

okainov commented Dec 17, 2018

If one passes ["mydata" => "data with spaces"] then one will get "Invalid signature" error, because even if in the request there were spaces, https://github.com/ofmlabs/oauth-php/blob/master/library/OAuthRequest.php#L751 this piece of code gets all spaces as + (and + as %2B). Easy fix is to replace + => %20 there

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

No branches or pull requests

1 participant