Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rawurlencode misencodes '~'.

Thanks to samharnack for the fix
  • Loading branch information...
commit db58c4e4c3205a8be41756a43d66bfdf49ff7bf1 1 parent 52026ef
@jrconlin authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 php/OAuthSimple.php
View
4 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);
Please sign in to comment.
Something went wrong with that request. Please try again.