diff --git a/php/OAuthSimple.php b/php/OAuthSimple.php index 0f3671d..5212805 100644 --- a/php/OAuthSimple.php +++ b/php/OAuthSimple.php @@ -373,7 +373,9 @@ private static function _oauthEscape($string) 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);