Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893345
D25374.1737224122.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
562 B
Referenced Files
None
Subscribers
None
D25374.1737224122.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 18:15 (3 d, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108607
Default Alt Text
D25374.1737224122.diff (562 B)
Attached To
Mode
D25374: Fix PHP 8.1 "urlencode(null)" exception blocking account registration redirect for custom OAuth provider
Attached
Detach File
Event Timeline
Log In to Comment