mirror of
https://github.com/jrconlin/oauthsimple.git
synced 2026-09-14 18:44:04 +00:00
rawurlencode misencodes '~'.
Thanks to samharnack for the fix
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user