From 877e163ff13cfeb84771224f0a09a7dad7ac1469 Mon Sep 17 00:00:00 2001 From: jr conlin Date: Mon, 16 May 2011 20:50:23 -0700 Subject: [PATCH] added escape to PlainText signature thanks to peorth for spotting that --- php/OAuthSimple.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/OAuthSimple.php b/php/OAuthSimple.php index 5c274cc..ae1e2bd 100644 --- a/php/OAuthSimple.php +++ b/php/OAuthSimple.php @@ -403,7 +403,7 @@ class OAuthSimple { switch($this->_parameters['oauth_signature_method']) { case 'PLAINTEXT': - return $secretKey; + return urlencode($secretKey); case 'HMAC-SHA1': $this->sbs = $this->_oauthEscape($this->_action).'&'.$this->_oauthEscape($this->_path).'&'.$this->_oauthEscape($this->_normalizedParameters());