diff --git a/php/OAuthSimple.php b/php/OAuthSimple.php index 7e1a136..0a20c07 100644 --- a/php/OAuthSimple.php +++ b/php/OAuthSimple.php @@ -326,7 +326,7 @@ class OAuthSimple { function _oauthEscape($string) { if ($string === 0) return 0; - if (empty($string)) + if (strlen($string) == 0) return ''; if (is_array($string)) throw new OAuthSimpleException('Array passed to _oauthEscape');