Permalink
Browse files

rawurlencode misencodes '~'.

Thanks to samharnack for the fix
  • Loading branch information...
1 parent 52026ef commit db58c4e4c3205a8be41756a43d66bfdf49ff7bf1 @jrconlin committed Jul 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 php/OAuthSimple.php
View
@@ -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);

0 comments on commit db58c4e

Please sign in to comment.