Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2681105
D25639.1734635118.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
652 B
Referenced Files
None
Subscribers
None
D25639.1734635118.diff
View Options
diff --git a/src/applications/auth/controller/PhabricatorAuthStartController.php b/src/applications/auth/controller/PhabricatorAuthStartController.php
--- a/src/applications/auth/controller/PhabricatorAuthStartController.php
+++ b/src/applications/auth/controller/PhabricatorAuthStartController.php
@@ -31,7 +31,7 @@
$session_token = $request->getCookie(PhabricatorCookies::COOKIE_SESSION);
$did_clear = $request->getStr('cleared');
- if (strlen($session_token)) {
+ if (phutil_nonempty_string($session_token)) {
$kind = PhabricatorAuthSessionEngine::getSessionKindFromToken(
$session_token);
switch ($kind) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 19:05 (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015407
Default Alt Text
D25639.1734635118.diff (652 B)
Attached To
Mode
D25639: Fix PHP 8.1 "strlen(null)" exception in PhabricatorAuthStartController.php
Attached
Detach File
Event Timeline
Log In to Comment