google-code-export / twitcurl

Automatically exported from code.google.com/p/twitcurl
1 stars 1 forks source link

status updates are urlencoded twice #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Any status update with url-encoded characters fails.
2. Example: twitCurl::statusUpdate("blah blah")
3. An authentication error is returned for any status updates containing 
characters which will be url encoded (signature error).

What is the expected output? What do you see instead?
The status key/value is urlencoded twice before a signature is generated. 
Currently pre-signature it is:
status%3Dblah%252520blah
Where instead it should be
status%3Dblah%2520blah

What version of the product are you using? On what operating system?
latest trunk, Windows 7, VS2010.

Please provide any additional information below.

Removing calls to urlencode in buildOAuthRawDataKeyValPairs should fix this 
problem.

Original issue reported on code.google.com by tmgre...@gmail.com on 14 Jun 2012 at 1:59

GoogleCodeExporter commented 9 years ago
You're right. New method added in r88 resulted in double urlencoding of status 
message string (post fields). Fixed in r99. Thanks :)

Original comment by swatkat....@gmail.com on 21 Jul 2012 at 7:42