Merge pull request #7 from dtb/master

Use rawurlencode instead of urlencode
This commit is contained in:
JR Conlin
2011-07-21 10:27:36 -07:00
+1 -1
View File
@@ -330,7 +330,7 @@ class OAuthSimple {
return '';
if (is_array($string))
throw new OAuthSimpleException('Array passed to _oauthEscape');
$string = urlencode($string);
$string = rawurlencode($string);
$string = str_replace('+','%20',$string);
$string = str_replace('!','%21',$string);
$string = str_replace('*','%2A',$string);