rawurlencode misencodes '~'.

Thanks to samharnack for the fix
This commit is contained in:
JR Conlin
2012-07-01 17:53:52 -07:00
parent 52026ef47e
commit db58c4e4c3
+3 -1
View File
@@ -373,7 +373,9 @@ class OAuthSimple {
throw new OAuthSimpleException('Array passed to _oauthEscape');
}
$string = rawurlencode($string);
//FIX: rawurlencode of ~
$string = str_replace('%7E','~', $string);
$string = str_replace('+','%20',$string);
$string = str_replace('!','%21',$string);
$string = str_replace('*','%2A',$string);