Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2962436
D25229.1739179715.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
651 B
Referenced Files
None
Subscribers
None
D25229.1739179715.diff
View Options
diff --git a/src/applications/auth/storage/PhabricatorAuthChallenge.php b/src/applications/auth/storage/PhabricatorAuthChallenge.php
--- a/src/applications/auth/storage/PhabricatorAuthChallenge.php
+++ b/src/applications/auth/storage/PhabricatorAuthChallenge.php
@@ -57,7 +57,11 @@
assert_instances_of($challenges, __CLASS__);
$token_list = $request->getStr(self::HTTPKEY);
- $token_list = explode(' ', $token_list);
+ if (phutil_nonempty_string($token_list)) {
+ $token_list = explode(' ', $token_list);
+ } else {
+ $token_list = [];
+ }
$token_map = array();
foreach ($token_list as $token_element) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 09:28 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1147207
Default Alt Text
D25229.1739179715.diff (651 B)
Attached To
Mode
D25229: Fix PHP 8.1 "explode(null)" exception which blocks rendering "Provide Multi-Factor Credentials" page
Attached
Detach File
Event Timeline
Log In to Comment