added escape to PlainText signature

thanks to peorth for spotting that
This commit is contained in:
jr conlin
2011-05-16 20:50:23 -07:00
parent d973ed7c8b
commit 877e163ff1
+1 -1
View File
@@ -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());