From a755a82ed47a8a0911931afe0589535da5877417 Mon Sep 17 00:00:00 2001 From: jr conlin Date: Wed, 21 Jan 2009 08:48:28 -0800 Subject: [PATCH] added convert for '+' to '%20' in encode --- php/OAuthSimple.php | 1 + 1 file changed, 1 insertion(+) diff --git a/php/OAuthSimple.php b/php/OAuthSimple.php index 5d96276..645f961 100644 --- a/php/OAuthSimple.php +++ b/php/OAuthSimple.php @@ -297,6 +297,7 @@ class OAuthSimple { if (is_array($string)) throw new OAuthSimpleException('Array passed to _oauthEscape'); $string = urlencode($string); + $string = str_replace('+','%20',$string); $string = str_replace('!','%21',$string); $string = str_replace('*','%2A',$string); $string = str_replace('\'','%27',$string);