Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2695621
D25592.1734850421.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
1 KB
Referenced Files
None
Subscribers
None
D25592.1734850421.diff
View Options
diff --git a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php
--- a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php
+++ b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php
@@ -59,7 +59,7 @@
$input = $args->getArg('input');
$is_live = $args->getArg('live');
- if (!strlen($input) && !$is_live) {
+ if (!phutil_nonempty_string($input) && !$is_live) {
throw new PhutilArgumentUsageException(
pht(
'Specify the dumpfile to read with "--input", or use "--live" to '.
@@ -67,7 +67,7 @@
}
$from = $args->getArg('from');
- if (!strlen($from)) {
+ if (!phutil_nonempty_string($from)) {
throw new PhutilArgumentUsageException(
pht(
'Specify namespace to rename from with %s.',
@@ -75,7 +75,7 @@
}
$to = $args->getArg('to');
- if (!strlen($to)) {
+ if (!phutil_nonempty_string($to)) {
throw new PhutilArgumentUsageException(
pht(
'Specify namespace to rename to with %s.',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 06:53 (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1025469
Default Alt Text
D25592.1734850421.diff (1 KB)
Attached To
Mode
D25592: Fix PHP 8.1 "strlen(null)" exception for "/bin/storage renamespace" without parameter
Attached
Detach File
Event Timeline
Log In to Comment