Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2688443
D25595.1734722775.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
675 B
Referenced Files
None
Subscribers
None
D25595.1734722775.diff
View Options
diff --git a/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php b/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php
--- a/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php
+++ b/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php
@@ -42,7 +42,7 @@
$format_list = implode(', ', $format_list);
$format_key = $args->getArg('as');
- if (!strlen($format_key)) {
+ if (!phutil_nonempty_string($format_key)) {
throw new PhutilArgumentUsageException(
pht(
'Use --as <format> to select a target encoding format. Available '.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 19:26 (11 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1019029
Default Alt Text
D25595.1734722775.diff (675 B)
Attached To
Mode
D25595: Fix PHP 8.1 "strlen(null)" exception for "/bin/files encode" without --as parameter
Attached
Detach File
Event Timeline
Log In to Comment