Page MenuHomePhorge

D25374.1732311121.diff
No OneTemporary

D25374.1732311121.diff

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
@@ -229,7 +229,10 @@
$consumer_secret = $this->consumerSecret->openEnvelope();
}
- $key = urlencode($consumer_secret).'&'.urlencode($this->tokenSecret);
+ $key = urlencode($consumer_secret).'&';
+ if ($this->tokenSecret !== null) {
+ $key .= urlencode($this->tokenSecret);
+ }
switch ($this->signatureMethod) {
case 'HMAC-SHA1':

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 21:32 (19 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
989327
Default Alt Text
D25374.1732311121.diff (562 B)

Event Timeline