Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2897647
D25589.1737248383.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
682 B
Referenced Files
None
Subscribers
None
D25589.1737248383.diff
View Options
diff --git a/src/applications/search/management/PhabricatorSearchManagementQueryWorkflow.php b/src/applications/search/management/PhabricatorSearchManagementQueryWorkflow.php
--- a/src/applications/search/management/PhabricatorSearchManagementQueryWorkflow.php
+++ b/src/applications/search/management/PhabricatorSearchManagementQueryWorkflow.php
@@ -21,7 +21,7 @@
public function execute(PhutilArgumentParser $args) {
$viewer = $this->getViewer();
$raw_query = $args->getArg('query');
- if (!strlen($raw_query)) {
+ if (!phutil_nonempty_string($raw_query)) {
throw new PhutilArgumentUsageException(
pht('Specify a query with --query.'));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 00:59 (14 m, 41 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1130566
Default Alt Text
D25589.1737248383.diff (682 B)
Attached To
Mode
D25589: Fix PHP 8.1 "strlen(null)" exception for "/bin/search query" without parameter
Attached
Detach File
Event Timeline
Log In to Comment