Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2685084
D25582.1734699582.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
668 B
Referenced Files
None
Subscribers
None
D25582.1734699582.diff
View Options
diff --git a/src/applications/auth/management/PhabricatorAuthManagementUnlimitWorkflow.php b/src/applications/auth/management/PhabricatorAuthManagementUnlimitWorkflow.php
--- a/src/applications/auth/management/PhabricatorAuthManagementUnlimitWorkflow.php
+++ b/src/applications/auth/management/PhabricatorAuthManagementUnlimitWorkflow.php
@@ -27,7 +27,7 @@
public function execute(PhutilArgumentParser $args) {
$username = $args->getArg('user');
- if (!strlen($username)) {
+ if (!phutil_nonempty_string($username)) {
throw new PhutilArgumentUsageException(
pht(
'Use %s to choose a user to reset actions for.', '--user'));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 12:59 (20 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1018292
Default Alt Text
D25582.1734699582.diff (668 B)
Attached To
Mode
D25582: Fix PHP 8.1 "strlen(null)" exception for "/bin/auth unlimit" without parameter
Attached
Detach File
Event Timeline
Log In to Comment