added convert for '+' to '%20' in encode

This commit is contained in:
jr conlin
2009-01-21 08:48:28 -08:00
parent b581a7ebc1
commit a755a82ed4
+1
View File
@@ -297,6 +297,7 @@ class OAuthSimple {
if (is_array($string))
throw new OAuthSimpleException('Array passed to _oauthEscape');
$string = urlencode($string);
$string = str_replace('+','%20',$string);
$string = str_replace('!','%21',$string);
$string = str_replace('*','%2A',$string);
$string = str_replace('\'','%27',$string);