Permalink
Browse files

added urlencoding of the oauth signature

  • Loading branch information...
1 parent a6fa6f5 commit 2c24894289c74d74e8ce7edd7fc70895d4ca99dd @michaelcurtis committed Mar 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ymclient.php
View
@@ -125,7 +125,7 @@ function oauth_get_request_token($callbackURL) {
'oauth_consumer_key' => $this->oaConsumerKey,
'oauth_callback' => $callbackURL));
- $url = $request->to_url() . "&oauth_signature=" . $this->signature->build_signature($request, new OAuthConsumer('', $this->oaConsumerSecret), NULL);
+ $url = $request->to_url() . "&oauth_signature=" . urlencode($this->signature->build_signature($request, new OAuthConsumer('', $this->oaConsumerSecret), NULL));
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

0 comments on commit 2c24894

Please sign in to comment.