diff --git a/src/future/oauth/PhutilOAuth1Future.php b/src/future/oauth/PhutilOAuth1Future.php --- a/src/future/oauth/PhutilOAuth1Future.php +++ b/src/future/oauth/PhutilOAuth1Future.php @@ -225,11 +225,12 @@ private function signString($string) { $consumer_secret = null; + $key = ''; if ($this->consumerSecret) { $consumer_secret = $this->consumerSecret->openEnvelope(); + $key .= urlencode($consumer_secret).'&'; } - $key = urlencode($consumer_secret).'&'; if ($this->tokenSecret !== null) { $key .= urlencode($this->tokenSecret); }